diff options
author | Antony Dovgal <tony2001@php.net> | 2006-01-17 23:49:14 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-01-17 23:49:14 +0000 |
commit | 7bf63ad49b1847f71e332bfc20db2b001ea9f1fb (patch) | |
tree | 5d49869e0061c1dd74a4a9911bd0724c30387d7f | |
parent | 38beafe629aad4f542f0c9b5b270be1594ad3e21 (diff) | |
download | php-git-7bf63ad49b1847f71e332bfc20db2b001ea9f1fb.tar.gz |
improve open_basedir checks in GD
-rw-r--r-- | ext/gd/gd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index faa4836179..23ec39588e 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -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) { |