Hello, i recently made a fresh install from the svn, I am running the latest Evolution branch 1.0.2 from the svn.
The problem is, when saving a plugin (after editing it) it seems to try and escape quotes by adding \ (slashes) before them.
Here is a sample resulting quote from an array:
// cleanup HOST header, remove leading \\\"www.\\\" and save it
$str_domain = strtolower(trim($_SERVER[\\\'HTTP_HOST\\\'], \\\" \\\\t\\\\n\\\\r\\\\0\\\\x0B.\\\"));
if ( strpos($str_domain, \\\"www.\\\")===0 ) $str_domain = substr($str_domain, 4);
The correct code should be:
// cleanup HOST header, remove leading "www." and save it
$str_domain = strtolower(trim($_SERVER['HTTP_HOST'], " \t\n\r\0\x0B."));
if ( strpos($str_domain, "www.")===0 ) $str_domain = substr($str_domain, 4);
If I keep editing and saving the document, it keeps adding more slashes.
I am not sure if this is a server configuration issue as I had not seen this before and I have installed modx quite a bit in the past. This is from a plugin I have running in many websites yet only this one gives me the problem.
It is worth mentioning this is a brand new server too, so like I said, it may very well a server configuration issue but I am somewhat clueless where to start looking.
Thanks.