Support » Plugins » [WordPress Importer] Bug : slash into tag names before single quote

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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?

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[WordPress Importer] Bug : slash into tag names before single quote’ is closed to new replies.