From ce668c6531c0ea6dbcf1ceb591dedf20cad1af33 Mon Sep 17 00:00:00 2001 From: julmis Date: Sun, 22 Feb 2004 00:49:13 +0000 Subject: [PATCH] Minor fix for $imagepath. --- lib/editor/popups/preview.php | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5