mirror of
https://github.com/php/php-src.git
synced 2024-12-12 03:15:29 +08:00
MFH: improve open_basedir checks in GD
This commit is contained in:
parent
4278ffd3b4
commit
56242031aa
@ -3201,6 +3201,8 @@ static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode, int
|
||||
fontname = (unsigned char *) fontname;
|
||||
#endif
|
||||
|
||||
PHP_GD_CHECK_OPEN_BASEDIR(fontname, "Invalid font filename");
|
||||
|
||||
#ifdef USE_GD_IMGSTRTTF
|
||||
# if HAVE_GD_STRINGFTEX
|
||||
if (extended) {
|
||||
|
Loading…
Reference in New Issue
Block a user