DrLightman
Member
Posted 1 year 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.
DrLightman
Member
Posted 1 year 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?
DrLightman
Member
Posted 1 year 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.