Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add missing else for non SQLServer db's.
  • Loading branch information
markstory committed Jan 7, 2012
1 parent f23226b commit 9a7e69d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Cake/Utility/Sanitize.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9a7e69d

Please sign in to comment.