From: Michael Wallner Date: Mon, 27 Apr 2015 19:18:41 +0000 (+0200) Subject: add PHP_HTTP_URL_SANITIZE_PATH to default flags of Url::mod() X-Git-Tag: RELEASE_2_5_0_RC1~6 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=37751fd61a357040be400175a9cdaac7f94297ad;p=m6w6%2Fext-http add PHP_HTTP_URL_SANITIZE_PATH to default flags of Url::mod() --- diff --git a/php_http_url.c b/php_http_url.c index 0640aa7..9b56f95 100644 --- a/php_http_url.c +++ b/php_http_url.c @@ -1571,7 +1571,7 @@ ZEND_END_ARG_INFO(); PHP_METHOD(HttpUrl, mod) { zval *new_url = NULL; - long flags = PHP_HTTP_URL_JOIN_PATH | PHP_HTTP_URL_JOIN_QUERY; + long flags = PHP_HTTP_URL_JOIN_PATH | PHP_HTTP_URL_JOIN_QUERY | PHP_HTTP_URL_SANITIZE_PATH; zend_error_handling zeh; php_http_expect(SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z!|l", &new_url, &flags), invalid_arg, return);