• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Escaping characters since last update

gijsbert

Basic Pleskian
We are running plesk 12.5 on centos 6.5 OS. Since one of the last updates we receive various complaints about characters being escaped.

From one customer we received a question why all "enters" are being replaced by \n\r\ when they download a website from there server (FTP) and upload to the same location.

Another customer tells me that when they export a database from phpMyAdmin all \n and \r are being escaped and replaced by \\n and \\r.

Both these problems seem to be related. Has there been any changes in recent plesk updates which could explain this behaviour? If not, does anyone know how this issue can be resolved?
 
I think that neither of the two issues is linked to a Plesk update.

From one customer we received a question why all "enters" are being replaced by \n\r\ when they download a website from there server (FTP) and upload to the same location.
This is probably due to a wrong FTP transfer type setting. Linux and Windows use different line end control sequences. Try to download the file in ASCII mode, then do the same download in BINARY mode and compare the result. When you download the file from Linux to Windows and upload the same file again, it can happen that the files loses some of the control characters, because the line end control sequences are auto-updated by the FTP client according to the operating system (source/target). I suggest this article that explains the problem in more detail: https://danielmiessler.com/study/crlf/#gs.1IaD0S0

Another customer tells me that when they export a database from phpMyAdmin all \n and \r are being escaped and replaced by \\n and \\r.
If a data field value contains literally "\n" this must be escaped to "\\n" when a dump is created, because else upon importing the dump, the expored "\n" would result in "n". The first slash is the escape character, the second slash is part of the field content, so that an import on \\n results in field value "\n", not simply "n". In SQL a dump's linebreaks are never escaped or translated into \n or \r, so you must be talking about a field content. And for field content, the behavior is correct.
 
I see, so what you were initially posting is not what you meant. You did not mean that there is a literal character sequence "\n" in your dataset, but that there is a line break in a text field that translates to \\n on export. That's a big difference. If your customer has a visible "\n" in his dataset, then it must export as \\n. If he has a line break in his dataset, then it must export as \n.
 
Does anyone know when Plesk will update phpMyAdmin to version 4.6.5.2? We are heavily using the export feature and are desparately wating for the fix.
 
Unfortunately not. I'm using Plesk's built-in database export functionality in the meantime, but this exports only the whole database. Maybe that's not what you need.

Thanks I'll try that out.. Could be really great if this minor update to phpMyAdmin came soon though.
 
Back
Top