The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. DrLightman
    Posted 5 years ago #

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


    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
    Posted 5 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 ) );


    $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
    Posted 5 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