From 0873217a1f8bfc743ef6c04fb8e29a749b1937be Mon Sep 17 00:00:00 2001 From: phpnut Date: Mon, 22 Oct 2007 04:31:34 +0000 Subject: [PATCH] Fixes #3427, MAGIC_QUOTES_GPC settings affecting parameters passed to actions git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5848 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/router.php | 4 ++++ 1 file changed, 4 insertions(+) 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; }