From d2b97f12e8e5f1a96aaf45958683841f0c44ccb3 Mon Sep 17 00:00:00 2001 From: calinseciu Date: Fri, 1 Feb 2013 18:10:24 +0200 Subject: [PATCH] Update lib/Cake/Utility/Sanitize.php Correctly use the $start variable in Sanitize::escape(). --- lib/Cake/Utility/Sanitize.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Utility/Sanitize.php b/lib/Cake/Utility/Sanitize.php index a7e92977d..600a616ee 100644 --- a/lib/Cake/Utility/Sanitize.php +++ b/lib/Cake/Utility/Sanitize.php @@ -76,7 +76,7 @@ class Sanitize { $start = 2; } - return substr(substr($string, 1), 0, -1); + return substr(substr($string, $start), 0, -1); } /**