A bit of a hack to fix double-escaped URLs in the CMS.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.2@50207 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-02-26 03:12:22 +00:00
parent 7429387aab
commit ecb40ae642

View File

@ -171,6 +171,9 @@ class HtmlEditorField extends TextareaField {
}
// $imageTracking->destroy();
}
// Sometimes clients will double-escape %20. Fix this up with this dirty hack
$content = str_replace('%2520', '%20', $content);
$record->$fieldName = $content;
}