diff --git a/cake/libs/router.php b/cake/libs/router.php index 983049a86..36ba8ef34 100644 --- a/cake/libs/router.php +++ b/cake/libs/router.php @@ -340,6 +340,10 @@ class Router extends Object { $out = array('pass' => array()); $r = $ext = null; + if (ini_get('magic_quotes_gpc') == 1) { + $url = stripslashes_deep($url); + } + if ($url && strpos($url, '/') !== 0) { $url = '/' . $url; }