Replace $_COOKIE[‘resolution’] with urldecode($_COOKIE[‘resolution’])
-
Dear developer,
Could we do following updating?
OPEN
wp-content/plugins/adaptive-images/adaptive-images-script.phpFIND
$cookie_resolution = $_COOKIE[‘resolution’];REPLACE WITH
$cookie_resolution = urldecode($_COOKIE[‘resolution’]);In detail, I develop an AMP plugin, I want this plugin will be compatible with mine. Since JavaScript is not allowed in AMP, I have to remove your JS (within web pages), and replace with PHP setcookie(). Since comma is an invalid character for setcookie/setrawcookie, comma is replaced with %2C (by PHP urlencode() internally). So I need a urldecode() to change the %2C back to comma.
I believe this updating is compatible with your original usage.
Thanks for your support. Any question, we can talk.
Rickey
- The topic ‘Replace $_COOKIE[‘resolution’] with urldecode($_COOKIE[‘resolution’])’ is closed to new replies.