Skip to content

Commit

Permalink
Update lib/Cake/Utility/Sanitize.php
Browse files Browse the repository at this point in the history
Correctly use the $start variable in Sanitize::escape().
  • Loading branch information
clns committed Feb 1, 2013
1 parent 00078e0 commit d2b97f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Utility/Sanitize.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static function escape($string, $connection = 'default') {
$start = 2;
}

return substr(substr($string, 1), 0, -1);
return substr(substr($string, $start), 0, -1);
}

/**
Expand Down

0 comments on commit d2b97f1

Please sign in to comment.