Forums

Double backslashes (\\) in PHP code blocks being turned into single (\)

healyhatman 26 Jun, 2017
Like the title says. I have a PHP code block where there needs to be an escaped backslash in a string, so I have "blahblah\\". When saving it works just fine, but it changes it to "\" in the textarea so that if I click save again, it saves as a single backslash and my code dies.
GreyHead 26 Jun, 2017
Hi healyhatman,

You may need to add some custom code to re-escape the code before it is saved. It can be tricky to get that right :-(

Bob
Max_admin 27 Jun, 2017
Hi,

I think that this is a bug and needs a fix, please send me a message using the contact us page to get a patch once ready.

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.