Author: stunami
Date: 2010-04-05 12:55:05 +0200 (Mon, 05 Apr 2010)
New Revision: 28984
Modified:
plugins/sfImageTransformPlugin/trunk/lib/sfImage.class.php
Log:
Support for relative paths using realpath
Adding check to make sure image is readable
Modified: plugins/sfImageTransformPlugin/trunk/lib/sfImage.class.php
===================================================================
--- plugins/sfImageTransformPlugin/trunk/lib/sfImage.class.php 2010-04-05
10:00:07 UTC (rev 28983)
+++ plugins/sfImageTransformPlugin/trunk/lib/sfImage.class.php 2010-04-05
10:55:05 UTC (rev 28984)
@@ -179,7 +179,10 @@
*/
public function load($filename, $mime='')
{
- if (file_exists($filename))
+
+ $filename = realpath($filename);
+
+ if (file_exists($filename) && is_readable($filename))
{
if ('' == $mime)
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.