\r\n is replaced with \n when clicking on a value · Issue #19368 · phpmyadmin/phpmyadmin · GitHub
Skip to content

\r\n is replaced with \n when clicking on a value #19368

@liviuconcioiu

Description

@liviuconcioiu

Describe the bug

\r\n is replaced with \n when clicking on a value in special cases. Not sure, but I think is triggered when line exceeds 1024 chars?

To Reproduce

Steps to reproduce the behavior:

  1. Create table:
CREATE TABLE `test` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `value` text DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

INSERT INTO `test` (`id`, `value`) VALUES
(1, 'test\r\ntest'),
(2, 'test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test <td class=\"text-right\">\r\n        test test test test test test test test test test test test test test test test test test test test</td>');
  1. Click on the first value, nothing happens even if is \r\n.
  2. Click on the second value
  3. See UPDATE being triggered and \r\n is replaced with \n.

Expected behavior

\r\n should not be replaced with \n.

Screenshots

08.11.2024_08.47.02_REC.mp4

Server configuration

  • phpMyAdmin version: 5.2.2-dev, 6.0.0-dev

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA problem or regression with an existing featurehelp wanted

    Type

    Projects

    Status

    High priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions