projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
55fc303
)
save funccall
author
Michael Wallner
<mike@php.net>
Tue, 29 Jul 2014 12:31:02 +0000
(14:31 +0200)
committer
Michael Wallner
<mike@php.net>
Tue, 29 Jul 2014 12:31:02 +0000
(14:31 +0200)
php_http_params.c
patch
|
blob
|
history
diff --git
a/php_http_params.c
b/php_http_params.c
index 1757ec9fc5f68dc0d62cf6712b4bbd5cc62c742c..65504ac660155e6d40da74c98d8e7b0d4b15b7cc 100644
(file)
--- a/
php_http_params.c
+++ b/
php_http_params.c
@@
-570,7
+570,7
@@
static void push_param(HashTable *params, php_http_params_state_t *state, const
}
static inline zend_bool check_str(const char *chk_str, size_t chk_len, const char *sep_str, size_t sep_len) {
- return 0 < sep_len && chk_len >= sep_len &&
!memcmp(chk_str, sep_str, sep_len
);
+ return 0 < sep_len && chk_len >= sep_len &&
*chk_str == *sep_str && !memcmp(chk_str + 1, sep_str + 1, sep_len - 1
);
}
static size_t check_sep(php_http_params_state_t *state, php_http_params_token_t **separators)