mirror of
https://github.com/php/php-src.git
synced 2026-03-26 17:22:15 +01:00
Disallow \0 chars inside session.save_path
This commit is contained in:
@@ -153,6 +153,10 @@ static PHP_INI_MH(OnUpdateSaveDir)
|
||||
if (stage == PHP_INI_STAGE_RUNTIME) {
|
||||
char *p;
|
||||
|
||||
if (memchr(new_value, '\0', new_value_length) != NULL) {
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
if ((p = zend_memrchr(new_value, ';', new_value_length))) {
|
||||
p++;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user