From 1e842a6791bd5267f5842c1ef739f77b8d399318 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Sun, 19 Jul 2009 14:36:16 +0000 Subject: [PATCH] - Removed unnecessary strlen() call and if statement. --- ext/curl/interface.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ext/curl/interface.c b/ext/curl/interface.c index d07c90814b..040942aa2f 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -1866,14 +1866,11 @@ type_conflict: char *type; ++postval; - if ((type = php_memnstr(postval, ";type=", sizeof(";type=") - 1, postval + strlen(postval)))) { + if ((type = php_memnstr(postval, ";type=", sizeof(";type=") - 1, postval + Z_STRLEN_PP(current)))) { *type = '\0'; } /* open_basedir check */ if (php_check_open_basedir(postval TSRMLS_CC)) { - if (type) { - *type = ';'; - } RETVAL_FALSE; return 1; } -- 2.50.1