diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-10-14 18:26:37 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-10-14 18:26:37 +0200 |
commit | 639f8f436d585d7697a7cbf4d7ad87854798c504 (patch) | |
tree | 6587b67c890e1bcbffbf6c74019bf3449db3d571 | |
parent | 7ae6f87a6c547c0bed9f52e628c050551529259a (diff) | |
download | rpg-639f8f436d585d7697a7cbf4d7ad87854798c504.tar.gz rpg-639f8f436d585d7697a7cbf4d7ad87854798c504.tar.bz2 |
Check if given file is really a file in JpegMeta FS#2322
-rw-r--r-- | inc/JpegMeta.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/JpegMeta.php b/inc/JpegMeta.php index afa70168c..5c043fb6b 100644 --- a/inc/JpegMeta.php +++ b/inc/JpegMeta.php @@ -1207,7 +1207,7 @@ class JpegMeta { * @author Andreas Gohr <andi@splitbrain.org> */ function _parseFileInfo() { - if (file_exists($this->_fileName)) { + if (file_exists($this->_fileName) && is_file($this->_fileName)) { $this->_info['file'] = array(); $this->_info['file']['Name'] = basename($this->_fileName); $this->_info['file']['Path'] = fullpath($this->_fileName); |