Post by Jacob » Fri Mar 13, 2009 7:01 pm

Hi, with my current host I need Magic Quotes GPC turned on - or I have to upgrade ???

Can I change the OpenCart settings? and how would I do this?

Active Member

Posts

Joined
Thu Dec 04, 2008 9:17 pm

Post by liquidpele » Sat Mar 14, 2009 11:54 am

This is a horrible hack.... but.....

You can work around magic quotes by disabling the check for it in opencart, and manually un-doing what magic quotes does by doing the following on every page load before any other php is run:

1) use get_magic_quotes_gpc() to see if it's enabled
2) if it is enabled, use stripslashes() on EVERY $ _POST and $ _GET item.

And why do I get a Forbidden http code back if I have a dollar sign and then _POST or _GET ??

New member

Posts

Joined
Mon Feb 23, 2009 11:58 pm
Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot], darkhorse, Semrush [Bot] and 157 guests