Broken Links in Comments (6 posts)

  1. zetetic
    Posted 9 years ago #

    This is probably something simple, but I've searched for hours to no avail. I'm using a custom style with a few plugins, but this same behavior is occurring with the default style and all plugins disabled. WordPress v2.0.3.

    User enters this code in a comment:

    <a href="http://www.testing.com/test.html">Test Link</a>

    This is stored in the database:

    <a href="http://www.testing.com/test.html" rel="nofollow">Test Link</a>

    When viewing comments, this broken HTML is returned:

    <a href="%5C%22http://www.testing.com/test.html%5C%22" rel="nofollow">Test Link</a>

  2. Nazgul
    Posted 9 years ago #

    Try the WordPress 2.0.3 Tuneup plugin. It should fix your issue.

  3. zetetic
    Posted 9 years ago #

    Works like a charm. Thank you Nazgul!

  4. zetetic
    Posted 9 years ago #

    In case anyone else finds this thread I should clarify that the break wasn't happening when a user posted a link, but when I edited a user's link after they posted it.

    Apparently it was the "Are you sure you want to make this edit?" dialogue (which the plugin above removes) that was adding the problematic slashes.

  5. yosemite
    Posted 9 years ago #

    Good follow-up zetetic, thanks...

  6. cropley
    Posted 8 years ago #

    Hey, thanks for the help on this - I just came up against the problem today.

    Just out of interest, is this a WP bug? I don't remember seeing the confirmation 'Are you sure' page before 2.0.3

    Has it been resolved in 2.0.4?

Topic Closed

This topic has been closed to new replies.

About this Topic