Export adding extra backslash on linebreaks #12765

Closed
NHcoder opened this Issue Nov 30, 2016 · 6 comments

Projects

None yet

6 participants

@NHcoder
NHcoder commented Nov 30, 2016 edited

Steps to reproduce

  1. Export a table that has \r\n (the actual binary values) in TEXT fields

Expected behaviour

Notice \\r\\n in the output.

Actual behaviour

This should be just \r\n

Server configuration

Operating system:
CentOS 6.8

Web server:
Apache 2.2.15

Database:
MySQL 5.5.53-1

PHP version:
5.6.28

phpMyAdmin version:
4.6.5.1-2

Client configuration

Browser:
Firefox 50.0

Operating system:
Windows 7 Home Premium

@knubew
knubew commented Nov 30, 2016

I can confirm this error !
Since version 4.6.4 phpMyAdmin is too buggy. :-(

I'll go back to the stable version 4.6.3.

@NHcoder
NHcoder commented Nov 30, 2016

Going back through my update logs and when exports where done, this used to work in phpMyAdmin v4.6.4.

@knubew
knubew commented Nov 30, 2016

Yes, it was ok in 4.6.4. But this version has different other bugs, f.e. in the "Enum" function.
Version 4.6.3 was the last stable version for me.

@NHcoder
NHcoder commented Nov 30, 2016

I think the issues is with libraries/plugins/export/ExportSql.php being changed to use $GLOBALS['dbi']->escapeString($db) instead of Util::sqlAddSlashes($db) which is no longer defined in libraries/Util.php.

@aommundsen

Does anyone have a patch for this issue? If not I will have to downgrade to a older version.

@devenbansod devenbansod added the bug label Dec 1, 2016
@devenbansod devenbansod added a commit to devenbansod/phpmyadmin that referenced this issue Dec 1, 2016
@devenbansod devenbansod Prevent extra back-slash while exporting new-lines
Fix #12765

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
fab3173
@devenbansod devenbansod added a commit to devenbansod/phpmyadmin that referenced this issue Dec 1, 2016
@devenbansod devenbansod Prevent extra back-slash while exporting new-lines
Fix #12765

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
d76c118
@devenbansod devenbansod added a commit to devenbansod/phpmyadmin that referenced this issue Dec 1, 2016
@devenbansod devenbansod Prevent extra back-slash while exporting new-lines
Fix #12765

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
931b458
@nijel nijel self-assigned this Dec 1, 2016
@nijel nijel referenced this issue Dec 1, 2016
Merged

Fixed SQL export with newlines #12768

3 of 4 tasks complete
@nijel nijel added this to the 4.6.6 milestone Dec 1, 2016
@nijel nijel added a commit that closed this issue Dec 1, 2016
@nijel nijel Fixed SQL export with newlines
Remove manual escaping where we do proper escaping through MySQL
extension.

Fixes #12765

Signed-off-by: Michal Čihař <michal@cihar.com>
e61b213
@nijel nijel closed this in e61b213 Dec 1, 2016
@ibennetch ibennetch added a commit that referenced this issue Dec 5, 2016
@nijel @ibennetch nijel + ibennetch Fixed SQL export with newlines
Remove manual escaping where we do proper escaping through MySQL
extension.

Fixes #12765

Signed-off-by: Michal Čihař <michal@cihar.com>
081843a
@bmbermn
bmbermn commented Jan 6, 2017

If anyone finds this and is using Plesk you can use the following work around until Plesk releases the updated version: https://support.plesk.com/hc/en-us/articles/115000064889?input_string=known+bug+w%2F+phpmyadmin+4.6.5.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment