Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is there a way to fix this problem?


tomliuwhite

Recommended Posts

Posted

I go to Admin->Catalog->Categories/Products->Products Description, and put some html code there, i.e. characterestics to Speedo<sup style="font-family:Arial, Helvetica, sans-serif"; style="font-size:13px ";>TM</sup>.

After i save it, and then i go back to check it, I find it is changed to: characterestics to Speedo<sup style=/"font-family:Arial, Helvetica, sans-serif/"; style=/"font-size:13px /";>TM</sup>.

If i save it, and then i go back again to check, it would be changed to:characterestics to Speedo<sup style=//"font-family:Arial, Helvetica, sans-serif//"; style=//"font-size:13px//";>TM</sup>.

Is there a way to fix this problem? Many thanks in advance.

Posted

I believe this results from a problem properly identifying whether magic_quotes_gpc and magic_quotes_runtime are on. In your admin section, look under Tools > Server Info. Look for the values for the following two settings:

 

magic_quotes_gpc

magic_quotes_runtime

 

They each have a functionality that could be causing this:

 

magic_quotes_gpc ==> calls addslashes() on all data in $_POST/$_GET/$_COOKIE

magic_quotes_runtime ==> calls addslashes() on all data from SELECT from the database

Contributions

 

Discount Coupon Codes

Donations

Posted
I believe this results from a problem properly identifying whether magic_quotes_gpc and magic_quotes_runtime are on. In your admin section, look under Tools > Server Info. Look for the values for the following two settings:

 

magic_quotes_gpc

magic_quotes_runtime

 

They each have a functionality that could be causing this:

 

magic_quotes_gpc ==> calls addslashes() on all data in $_POST/$_GET/$_COOKIE

magic_quotes_runtime ==> calls addslashes() on all data from SELECT from the database

Yes, i found them. It looks like:

Directive Local Value Master Value

magic_quotes_gpc On On

magic_quotes_runtime Off Off

magic_quotes_sybase Off Off

 

Now what shall i do? Shall i turn "magic_quotes_gpc "off? Actually i do not want to turn it off, i wonder it would affect other files if i turn it off. Except turning if off, is there another way to fix this problem?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...