preg_quote not quoting delimiter
-
Please properly escape your regexp patterns. I’m using a development cPanel server (e.g., 123.456.789.000/~example/), and the URL contains the ‘~’ which happens to be the delimiter character you aren’t escaping:
multilanguage.php:596
$host_pattern = “~^((.*)” . preg_quote( $home_host . $port, ‘~’) . “)~”;multilanguage.php:599
$home_url_pattern = “~^(” . preg_quote( $full_host . $home_dir, ‘~’) . “)~U”;I’ve already done it on my copy of the plugin, but wanted to report it in case anyone else had the same issue.
Thx! ??
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘preg_quote not quoting delimiter’ is closed to new replies.