mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
7429387aab
commit
ecb40ae642
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user