You are here:  » symbol issue

Support Forum



symbol issue

Submitted by karolisgo on Mon, 2012-01-09 19:22 in

Hi David,

I have issue with double quote symbol - ".

If I have this symbol in description or any other custom fields, when saving, script automatically ads a slash before, ant it goes - /". After three savings, it's - ///". and so on.

One line in my description looks now: 9.7\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" :)

It would be great to solve this.

In product desciption field, or custom fields if using some special language symbols in database (phpmyadmin tool) shows them like: žiŠ, in frontpage they are shown correctly but in database - not. Is it possible to change encoding or whatever that they would be saved in DB correctly?

Regards,
K.

Submitted by support on Mon, 2012-01-09 19:31

Hello Karolis,

The additional back-slash characters are being added as part of PHP's "magic quotes" functionality. Ordinarily, the script would handle this correctly but in some PHP configurations; the function to indicate whether or not the magic quotes setting is enabled returns in the wrong sense.

To work around this, look for the following code at line 199 in includes/widget.php:

    if (get_magic_quotes_runtime())

...and REPLACE with:

    if (TRUE)

Cheers,
David.
--
PriceTapestry.com