Permalink
Browse files

BUGFIX Decode URLSegment before showing it through SiteTreeURLSegment…

…Field, to separate presentation from its internal url encoded value
  • Loading branch information...
1 parent 73e5c34 commit 20af440694231b6e70805a5852b3dcceb5be5ba0 @chillu chillu committed May 14, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 code/forms/SiteTreeURLSegmentField.php
@@ -21,6 +21,10 @@ class SiteTreeURLSegmentField extends TextField {
'suggest'
);
+ function Value() {
+ return rawurldecode($this->value);
+ }
+
function Field($properties = array()) {
Requirements::javascript(CMS_DIR . '/javascript/SiteTreeURLSegmentField.js');
return parent::Field($properties);

0 comments on commit 20af440

Please sign in to comment.