WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Escaped quote inconsistency in WP2.2.1 (2 posts)

  1. tene
    Member
    Posted 7 years ago #

    I'm running WP 2.2.1 on a new Centos4 VPS, and hitting escaped quotes / addslashes problems when trying to enter an a tag.

    For example, entering:
    <a href="http://wordpress.org" alt="WordPress">WordPress</a>

    after a Save is left as:
    <a href=\"http://wordpress.org\" alt=\"WordPress\">WordPress</a>

    The escaped quotes (from addslashes it seems) mean the a tag doesn't work in the final page, it resolves in the browser to:
    http://mysite.com/%22http://wordpress.org/%22
    compared to http://wordpress.org/ when entered in functions.php on the other site.

    The a tag is being entered in a field in a modified version of functions.php from Kubrick.

    Strangely, it works perfectly on WP 2.2.1 running on another VPS (RHEL4, not Centos), using exactly the same version of functions.php.
    <a href="http://wordpress.org">WordPress</a> is saved as it should be.

    Can anyone suggest what I need to do to stop the escaping behavior? Suspect I'm missing something obvious.

  2. tene
    Member
    Posted 6 years ago #

    Solved by turning Magic Quotes off in php.ini

Topic Closed

This topic has been closed to new replies.

About this Topic