From c656974180fa2f2c00a1d794451d25e845a67a2c Mon Sep 17 00:00:00 2001 From: WenJun Date: Tue, 10 Sep 2013 17:55:19 +0800 Subject: [PATCH] fix a bug fix a bug --- requests/yaf_request_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests/yaf_request_http.c b/requests/yaf_request_http.c index 355dc228..f5f9c9c7 100644 --- a/requests/yaf_request_http.c +++ b/requests/yaf_request_http.c @@ -78,7 +78,7 @@ yaf_request_t * yaf_request_http_instance(yaf_request_t *this_ptr, char *request if (Z_TYPE_P(uri) != IS_NULL) { zval *rewrited = yaf_request_query(YAF_GLOBAL_VARS_SERVER, ZEND_STRL("IIS_WasUrlRewritten") TSRMLS_CC); zval *unencode = yaf_request_query(YAF_GLOBAL_VARS_SERVER, ZEND_STRL("UNENCODED_URL") TSRMLS_CC); - if (Z_TYPE_P(rewrited) = IS_LONG + if (Z_TYPE_P(rewrited) == IS_LONG && Z_LVAL_P(rewrited) == 1 && Z_TYPE_P(unencode) == IS_STRING && Z_STRLEN_P(unencode) > 0) {