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

Viewing 1 replies (of 1 total)
  • Thread Starter llbbl

    (@llbbl)

    lot of help you guys where ??


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

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

Viewing 1 replies (of 1 total)
  • The topic ‘URL with two dashes’ is closed to new replies.