Index: branches/5.2.x/core/kernel/globals.php =================================================================== diff -u -N -r16000 -r16027 --- branches/5.2.x/core/kernel/globals.php (.../globals.php) (revision 16000) +++ branches/5.2.x/core/kernel/globals.php (.../globals.php) (revision 16027) @@ -1,6 +1,6 @@ ", '', $text); + $text = str_replace(array('\r', '\n'), array("\r", "\n"), $text); + $text = stripslashes($text); + + return $text; + } + + if ( $strategy == self::ESCAPE_URL ) { + return rawurldecode($text); + } + + if ( $strategy == self::ESCAPE_RAW ) { + return $text; + } + + throw new InvalidArgumentException(sprintf('Unknown escape strategy "%s"', $strategy)); + } } /** @@ -1046,4 +1104,4 @@ return $res; } -} \ No newline at end of file +}