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); } /**