Permalink
Browse files

quoteIdentifierInFragment() also has wrong escaping

  • Loading branch information...
1 parent 3ea563e commit 2008dbace3262b0b893c146b0d77e99f4e06d71f @JaredWilliams JaredWilliams committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 library/Zend/Db/Adapter/Platform/Mysql.php
View
2 library/Zend/Db/Adapter/Platform/Mysql.php
@@ -134,7 +134,7 @@ public function quoteIdentifierInFragment($identifier, array $safeWords = array(
case 'as':
break;
default:
- $parts[$i] = '`' . str_replace('`', '\\' . '`', $part) . '`';
+ $parts[$i] = '`' . str_replace('`', '``', $part) . '`';
}
}
return implode('', $parts);

0 comments on commit 2008dba

Please sign in to comment.