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:
d3ccf4a
)
brain wrecked
author
Michael Wallner
<mike@php.net>
Thu, 30 Oct 2014 17:54:02 +0000
(18:54 +0100)
committer
Michael Wallner
<mike@php.net>
Thu, 6 Nov 2014 08:12:56 +0000
(09:12 +0100)
php_http_url.c
patch
|
blob
|
history
diff --git
a/php_http_url.c
b/php_http_url.c
index 09f94ec30494a549215a62f6e668c6d12cfa7fff..4263aab6a068d7e961243a8608e751c3c4a7df1c 100644
(file)
--- a/
php_http_url.c
+++ b/
php_http_url.c
@@
-726,8
+726,8
@@
static const char *parse_query(php_http_url_t *url)
const char *tmp = url->ptr + !!*url->ptr;
TSRMLS_FETCH_FROM_CTX(url->ts);
const char *tmp = url->ptr + !!*url->ptr;
TSRMLS_FETCH_FROM_CTX(url->ts);
- /* is there actually a query to parse
? */
- if (
!*url->ptr &&
*url->ptr != '?') {
+ /* is there actually a query to parse? */
+ if (*url->ptr != '?') {
return url->ptr;
}
return url->ptr;
}
@@
-790,8
+790,8
@@
static const char *parse_fragment(php_http_url_t *url)
const char *tmp;
TSRMLS_FETCH_FROM_CTX(url->ts);
const char *tmp;
TSRMLS_FETCH_FROM_CTX(url->ts);
- /* is there actually a fragment to parse */
- if (
!*url->ptr &&
*url->ptr != '#') {
+ /* is there actually a fragment to parse
?
*/
+ if (*url->ptr != '#') {
return url->ptr;
}
return url->ptr;
}