mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
#1056 - Fixed deletefromlive messages with quote in title
Fixed Convert::raw2js() for strings containing slashes git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46672 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
762c1a7369
commit
e8d39e055a
@ -59,7 +59,7 @@ class Convert extends Object {
|
|||||||
return $val;
|
return $val;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
return str_replace(array('"',"\n","\r", "'"), array('\"','\n','\r', "\'"), $val);
|
return str_replace(array("\\", '"',"\n","\r", "'"), array("\\\\", '\"','\n','\r', "\\'"), $val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user