WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
Tilda character in URL breaks W3TC (2 posts)

  1. georeith@gmail.com
    Member
    Posted 1 year ago #

    The reason this is happening is because the tilda character has been used as a delimiter for regex, and sometimes the URL or path is included in the regex e.g.

    /inc/define.php - line 1078:
    $regexp = '~^' . w3_preg_quote(w3_get_site_path()) . '~';

    Passing the path /~user/wordpress/ to that regex would cause it to end prematurely and think anything past /~ is a modifier.

    This form of URL structure is common in apache environments with mod_userdir enabled.

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. Frederick Townes
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for letting me now. We will look into this for future releases.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic