mirror of
https://github.com/php/php-src.git
synced 2024-11-29 21:04:10 +08:00
Fix crash in stripcslashes("") (#5628)
This commit is contained in:
parent
f8c07fff2d
commit
7b9d2e33bf
@ -1617,7 +1617,10 @@ PHPAPI void php_stripcslashes(char *str, int *len)
|
||||
*target++=*source;
|
||||
}
|
||||
}
|
||||
*target='\0';
|
||||
|
||||
if(nlen != 0) {
|
||||
*target='\0';
|
||||
}
|
||||
|
||||
*len = nlen;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user