Support » Plugin: Redirection » Unicode ZERO WIDTH SPACE being injected into redirection queries

  • The plugin is not working for me. And I guess I found out why:
    When I inspect the element I find
    <input style=”width: 85%” type=”text” name=”old” value=”​/ombudsman​/item​/(.*)” id=”original”>

    &#8203, or unicode zero width space is being injected into my queries. I can’t get rid of it.

    https://wordpress.org/plugins/redirection/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Which element are you inspecting? I can’t find that in the interface.

    For debugging, have you tried adding redirects in a different browser? And by typing it out, as opposed to copying and pasting?

    I’m having the same issue. If I manually type the URL into the browser, the redirect works. But if I copy/paste from the redirection plugin listing page, I get a 404. If I inspect the URL string on the listing page with Firebug, I can see extra &#8203 entities in it.

    This character is being added to URLs when they are displayed in the plugin admin. I have no clue why, but if you look at line 77 in redirection/models/log.php you’ll see the following:

    return implode('&#8203/', explode( '/', substr( $url, 0, 80 ) ) ).( strlen( $url ) > 80 ? '...' : '' );

    And line 402 in redirection/models/redirect:

    return implode( '​&#8203/', explode( '/', $url ) );

    The zero width space is being intentionally added.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unicode ZERO WIDTH SPACE being injected into redirection queries’ is closed to new replies.