Changeset 334 for trunk/lib/Image.inc.php
- Timestamp:
- May 13, 2008 4:14:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Image.inc.php
r136 r334 56 56 $src = $this->oSrc($id); 57 57 $filepath = preg_match('!://!', $src) ? $src : getenv('DOCUMENT_ROOT') . $src; 58 // Use exif_imagetype to check not only file exist ance but that of a valid image.58 // Use exif_imagetype to check not only file existence but that of a valid image. 59 59 return false != @exif_imagetype($filepath); 60 60 }
Note: See TracChangeset
for help on using the changeset viewer.