mirror of
https://github.com/php/php-src.git
synced 2026-04-29 11:13:36 +02:00
- Tiny piece of unicode support
This commit is contained in:
+2
-1
@@ -59,7 +59,8 @@ PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr,
|
||||
(key_type = zend_hash_get_current_key_ex(ht, &key, &key_len, &idx, 0, NULL)) != HASH_KEY_NON_EXISTANT;
|
||||
zend_hash_move_forward(ht)
|
||||
) {
|
||||
if (key_type == HASH_KEY_IS_STRING && key_len && key.s[key_len-1] == '\0') {
|
||||
if ((key_type == HASH_KEY_IS_STRING || key_type == HASH_KEY_IS_UNICODE)
|
||||
&& key_len && key.s[key_len-1] == '\0') {
|
||||
/* We don't want that trailing NULL */
|
||||
key_len -= 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user