Permalink
Browse files

Add missing else for non SQLServer db's.

  • Loading branch information...
markstory committed Jan 7, 2012
1 parent f23226b commit 9a7e69df7fc44ccd8ea6ea31151dfd63e404f2d0
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Cake/Utility/Sanitize.php
@@ -72,7 +72,10 @@ public static function escape($string, $connection = 'default') {
$string = $db->value($string, 'string');
if ($string[0] === 'N') {
$string = substr($string, 2);
+ } else {
+ $string = substr($string, 1);
}
+
$string = substr($string, 0, -1);
return $string;
}

0 comments on commit 9a7e69d

Please sign in to comment.