Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.0.3.1] \upload\catalog\model\openbay\ebay_product.php #3115

Closed
gob33 opened this issue Jun 18, 2015 · 2 comments
Closed

[2.0.3.1] \upload\catalog\model\openbay\ebay_product.php #3115

gob33 opened this issue Jun 18, 2015 · 2 comments

Comments

@gob33
Copy link
Contributor

gob33 commented Jun 18, 2015

Line 273: utf8_decode() has only 1 parameter possible not 3.
Confusion with html_entity_decode()
Error since 1.5.6.4 at least.

@mrnfrancesco
Copy link
Contributor

Line 273 in upload/catalog/model/openbay/ebay_product.php in OC 2.0.3.1 is:

$this->db->query(
"INSERT INTO `" . DB_PREFIX . "product_description` SET
`product_id` = '" . (int)$product_id . "',
`language_id` = '" . (int)$this->config->get('config_language_id') . "',
`name` = '" . $this->db->escape(htmlspecialchars(base64_decode($item['Title']), ENT_COMPAT, 'UTF-8')) . "',
`description` = '" . $this->db->escape(htmlspecialchars(utf8_encode($item['Description']), ENT_COMPAT, 'UTF-8')) . "'");

There is no utf_decode(), but utf_encode(); by the way, it has just one parameter which is $item['Description'].

So, what's the problem? I really don't understand this issue.

@gob33
Copy link
Contributor Author

gob33 commented Jun 19, 2015

You are right, I missed the closing )

@gob33 gob33 closed this as completed Jun 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants