summaryrefslogtreecommitdiff
path: root/main/rfc1867.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/rfc1867.c')
-rw-r--r--main/rfc1867.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c
index 1cf76f4f93..4ba7298e93 100644
--- a/main/rfc1867.c
+++ b/main/rfc1867.c
@@ -1044,19 +1044,19 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler)
php_mb_gpc_encoding_converter(&filename, &str_len, 1, NULL, NULL TSRMLS_CC);
}
s = php_mb_strrchr(filename, '\\' TSRMLS_CC);
- if (tmp = php_mb_strrchr(filename, '/' TSRMLS_CC)) {
+ if ((tmp = php_mb_strrchr(filename, '/' TSRMLS_CC)) > s) {
s = tmp;
}
num_vars--;
} else {
s = strrchr(filename, '\\');
- if (tmp = strrchr(filename, '/')) {
+ if ((tmp = strrchr(filename, '/')) > s) {
s = tmp;
}
}
#else
s = strrchr(filename, '\\');
- if (tmp = strrchr(filename, '/')) {
+ if ((tmp = strrchr(filename, '/')) > s) {
s = tmp;
}
#endif