Skip to content

Commit 0f2be03

Browse files
authored
raw
improves compatibility with sapi/fpm/tests/fcgi-env-pif-apache-pp-sn-strip-encoded-plus.phpt does not fix it entirely, but it does help 🤔
1 parent 2aceb35 commit 0f2be03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/fpm/fpm/fpm_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ static void init_request_info(void)
10441044
// env_script_filename contains /home/hans/web/cyrillic%D1%80%D1%84.ratma.net/public_html/index.php.
10451045
// and we must decode it to /home/hans/web/cyrillicрф.ratma.net/public_html/index.php.
10461046
if(memchr(env_script_filename, '%', plen) != NULL){
1047-
plen = php_url_decode(env_script_filename, plen);
1047+
plen = php_raw_url_decode(env_script_filename, plen);
10481048
}
10491049
}
10501050
/* ignore query string if sent by Apache (RewriteRule) */

0 commit comments

Comments
 (0)