summaryrefslogtreecommitdiff
path: root/inc/JpegMeta.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-10-14 18:26:37 +0200
committerAndreas Gohr <andi@splitbrain.org>2011-10-14 18:26:37 +0200
commit639f8f436d585d7697a7cbf4d7ad87854798c504 (patch)
tree6587b67c890e1bcbffbf6c74019bf3449db3d571 /inc/JpegMeta.php
parent7ae6f87a6c547c0bed9f52e628c050551529259a (diff)
downloadrpg-639f8f436d585d7697a7cbf4d7ad87854798c504.tar.gz
rpg-639f8f436d585d7697a7cbf4d7ad87854798c504.tar.bz2
Check if given file is really a file in JpegMeta FS#2322
Diffstat (limited to 'inc/JpegMeta.php')
-rw-r--r--inc/JpegMeta.php2
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);