MFH: improve open_basedir checks in GD

This commit is contained in:
Antony Dovgal 2006-01-17 23:47:08 +00:00
parent 4278ffd3b4
commit 56242031aa

View File

@ -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) {