From: julmis Date: Sun, 22 Feb 2004 00:49:13 +0000 (+0000) Subject: Minor fix for $imagepath. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ce668c6531c0ea6dbcf1ceb591dedf20cad1af33;p=moodle.git Minor fix for $imagepath. --- diff --git a/lib/editor/popups/preview.php b/lib/editor/popups/preview.php index dd39333c7b..f2db186ada 100644 --- a/lib/editor/popups/preview.php +++ b/lib/editor/popups/preview.php @@ -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);