summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2020-04-13 21:07:04 -0700
committerStanislav Malyshev <stas@php.net>2020-04-13 21:08:37 -0700
commit9d6bf8221b05f86ce5875832f0f646c4c1f218be (patch)
tree2c7df45bf6b143efaaf99ea9273d1d6c99fc0506
parent14fcc813948254b84f382ff537247d8a7e5e0e62 (diff)
downloadphp-git-9d6bf8221b05f86ce5875832f0f646c4c1f218be.tar.gz
Fix bug #79465 - use unsigneds as indexes.
-rw-r--r--ext/standard/url.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/url.c b/ext/standard/url.c
index fe6d7f9de1..1dd073e2bb 100644
--- a/ext/standard/url.c
+++ b/ext/standard/url.c
@@ -559,7 +559,7 @@ PHPAPI size_t php_url_decode(char *str, size_t len)
#ifndef CHARSET_EBCDIC
*dest = (char) php_htoi(data + 1);
#else
- *dest = os_toebcdic[(char) php_htoi(data + 1)];
+ *dest = os_toebcdic[(unsigned char) php_htoi(data + 1)];
#endif
data += 2;
len -= 2;
@@ -651,7 +651,7 @@ PHPAPI size_t php_raw_url_decode(char *str, size_t len)
#ifndef CHARSET_EBCDIC
*dest = (char) php_htoi(data + 1);
#else
- *dest = os_toebcdic[(char) php_htoi(data + 1)];
+ *dest = os_toebcdic[(unsigned char) php_htoi(data + 1)];
#endif
data += 2;
len -= 2;