Forums

URL with two dashes (2 posts)

  1. llbbl
    Member
    Posted 6 years ago #

    Friend of mine tried to install WP on his site but couldn't get it working because the url had two dashes in the name. Like for instance:

    word--press.org

    When you viewed the source the links to the styesheet where messed up. Instead of url being dashes it was "& # 8 2 1 1;". So for instance it looks like this:

    word& # 8 2 1 1;press.org

    I had to add the spaces in order for it to show up right. Otherwise it looks like a single dash.

    Now in the functions.php there is some function in there that calls rawurlencode(), but according to that the "-" character is NOT supposed to get encoded.

    – –
    Anyone have an idea of what's going on?

  2. llbbl
    Member
    Posted 6 years ago #

    lot of help you guys where :P


    $curl = str_replace('--', '& # 8 2 1 1;', $curl);

    Deleting that line in wp-includes\functions-formatting.php fixed the problem.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.