Index: branches/5.2.x/core/kernel/globals.php =================================================================== diff -u -N -r15733 -r15856 --- branches/5.2.x/core/kernel/globals.php (.../globals.php) (revision 15733) +++ branches/5.2.x/core/kernel/globals.php (.../globals.php) (revision 15856) @@ -1,6 +1,6 @@ ', "", $text); + + return $text; + } + + if ( $strategy == self::ESCAPE_URL ) { + return rawurlencode($text); + } + + if ( $strategy == self::ESCAPE_RAW ) { + return $text; + } + + throw new InvalidArgumentException(sprintf('Unknown escape strategy "%s"', $strategy)); + } + } /**