1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00

improve open_basedir checks in GD

This commit is contained in:
Antony Dovgal
2006-01-17 23:49:14 +00:00
parent 38beafe629
commit 7bf63ad49b
+2
View File
@@ -2966,6 +2966,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) {