Skip to content

Commit

Permalink
drop ereg dep for php 7 in Db
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Jun 27, 2016
1 parent d197a50 commit 70efe63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Db/lib/Horde/Db/SearchParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ protected static function _parseKeywords4($column, &$tokens)
}

$val = Horde_String::lower(substr(array_shift($tokens), 1));
$val = addslashes(ereg_replace("([\\%])", "\\\\1", $val));
$val = addslashes(str_replace("%", "\\%", $val));

return "(LOWER($column) LIKE '%$val%')";
}
Expand Down

0 comments on commit 70efe63

Please sign in to comment.