Pursuant Posted February 21, 2011 Share Posted February 21, 2011 When using Configuration::updateValue('key','value'), the following happens: static public function updateValue($key, $values, $html = false) { //code removed /* Update classic values */ if (!is_array($values)) { $values = pSQL($values, $html); //VALUE IS ESCAPED HERE if (Configuration::get($key) !== false) //Configuration doesnt exist, so go to else { $result = $db->AutoExecute( //code removed } else { $result = self::_addConfiguration($key, $values);[/u]//_addConfiguration is called, using the ESCAPED keys, instead of the original keys.[/b] //code removed } } /* Update multilingual values */ else { //code removed } return $result; } When the escaped $values is passed to _addConfiguration, it gets double escaped before it is inserted.This is a bug I have found in v1.4Prestashop team please fix!--Kevin Klika Link to comment Share on other sites More sharing options...
Radu Posted February 22, 2011 Share Posted February 22, 2011 please also submit the bug to the bug tracker in order to have a better chance to be seen by the presta developers Link to comment Share on other sites More sharing options...
Pursuant Posted February 23, 2011 Author Share Posted February 23, 2011 I did, but they told me it "wasnt really a bug"... Whatever that means Link to comment Share on other sites More sharing options...
Patric Posted February 23, 2011 Share Posted February 23, 2011 Hi, I did, but they told me it "wasnt really a bug"... Whatever that means Could you please give me the Bug Tracker report's URL? Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now