Minor fix for $imagepath.

This commit is contained in:
julmis
2004-02-22 00:49:13 +00:00
parent 08df81a8e6
commit ce668c6531
+1
View File
@@ -18,6 +18,7 @@
$imageurl = rawurldecode($imageurl); /// Full URL starts with $CFG->wwwroot/file.php
$imagepath = str_replace("$CFG->wwwroot/file.php", '', $imageurl);
$imagepath = str_replace("?file=", '', $imagepath); // if we're using second option of file path.
if ($imagepath != $imageurl) { /// This is an internal image
$size = getimagesize($CFG->dataroot.$imagepath);