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.
Forums
Double backslashes (\\) in PHP code blocks being turned into single (\)
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
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
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
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
This topic is locked and no more replies can be posted.