• Resolved codesmith32

    (@codesmith32)


    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! ??

    • This topic was modified 7 years, 3 months ago by codesmith32.
    • This topic was modified 7 years, 3 months ago by codesmith32.
Viewing 1 replies (of 1 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Thank you for the information!

    We will make the necessary changes during the next plugin update.

Viewing 1 replies (of 1 total)
  • The topic ‘preg_quote not quoting delimiter’ is closed to new replies.