diff options
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php index 7f550dbde..127276475 100644 --- a/inc/common.php +++ b/inc/common.php @@ -1197,6 +1197,11 @@ function php_to_byte($v){ return $ret; } - +/** + * Wrapper around preg_quote adding the default delimiter + */ +function preg_quote_cb($string){ + return preg_quote($string,'/'); +} //Setup VIM: ex: et ts=2 enc=utf-8 : |