Skip to content

Commit

Permalink
Escape a couple more characters so your facets don't blow up.
Browse files Browse the repository at this point in the history
  • Loading branch information
ruebot committed Feb 11, 2015
1 parent 80e062d commit 5db0252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/utilities.inc
Expand Up @@ -137,7 +137,7 @@ function islandora_solr_csv_explode($delim = ',', $str = '', $enclose = '"', $pr
* The escaped string.
*/
function islandora_solr_lesser_escape($value) {
$pattern = '/(\+|-|&&|\|\||!|\(|\)|\{|}|\[|]|\^| |~|\?|:|\\\)/';
$pattern = '/(\"|\/|\+|-|&&|\|\||!|\(|\)|\{|}|\[|]|\^| |~|\?|:|\\\)/';
$replace = '\\\$1';

return preg_replace($pattern, $replace, $value);
Expand Down

0 comments on commit 5db0252

Please sign in to comment.