WordPress.org

Ready to get started?Download WordPress

Forums

[WordPress Importer] Bug : slash into tag names before single quote (3 posts)

  1. DrLightman
    Member
    Posted 3 years ago #

    Hi, I'm importing an .xml that contains tags such as:

    "foo'bar"

    After the import is completed the name becomes "foo\'bar".

    How could I fix this? How to get rid of that "\" ? I don't have magic quotes ON either on my local development environment, neither online in the remote server, so the problem might be in the importer plugin.

  2. DrLightman
    Member
    Posted 3 years ago #

    Maybe I found, but I'm not sure if this could lead to security holes. The procedure imports fine as I expect.

    line 75 of wordpress-importer.php, changing:

    $return = $wpdb->escape( trim( $return ) );

    to:

    $return = trim( $return );

    Maybe escpaing is done afterward anyway, because I don't get any SQL error with the modification.

    Any opiniono on this?

  3. DrLightman
    Member
    Posted 3 years ago #

    It doens't even seem to work this way online, even with magic quotes Off :(

    I'm doing the import even if it's messing the tag names, I'll edit the rows in phpmyadmin with a replace to get rid of the \ later... a fix to this would be really appreciated though.

Topic Closed

This topic has been closed to new replies.

About this Topic