You are here:  » Apostrophes being escaped with a \


Apostrophes being escaped with a \

Submitted by Convergence on Sun, 2014-05-18 00:04 in

Hi David,

Just noticed with the new server/PHP version that the apostrophes in the Search and Replace filter are being escaped:

Example: David's becomes David\'s.

Magic Quotes is off on the server - bit stumped.

Thanks!

Submitted by support on Sun, 2014-05-18 09:51

Hi Convergence,

There can be detection issues - easily fixed; in includes/widget.php look for the following code at line 125:

  return $text;

...and REPLACE with:

  return stripslashes($text);

Cheers,
David.
--
PriceTapestry.com

Submitted by Convergence on Sun, 2014-05-18 17:32

Hi David,

Will this intefere with any other function, example: explode filters where we use a slash to identify where to explode?

If you recall, we leave all characters in the category feeds and then use filters to create our categories.

Thanks!

Submitted by support on Mon, 2014-05-19 07:29

Hi Dennis,

Shouldn't be a problem - only slashes preceding a second slash, or an apostrophe would be stripped. If there does turn out to be any issues they should be easily dealt with conditionally but I'm sure there won't be - it does look like magic quotes are active in the local setting (despite being off in php.ini) so should be OK...

Cheers,
David.
--
PriceTapestry.com