From 9e43aba7fbc65d03821298611505cbc68aa892ba Mon Sep 17 00:00:00 2001 From: vargenau Date: Tue, 7 Jun 2011 12:54:07 +0000 Subject: [PATCH] Fix bug with {{http://...}} image git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@8093 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/InlineParser.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/InlineParser.php b/lib/InlineParser.php index 2d48ca417..19be58a3c 100644 --- a/lib/InlineParser.php +++ b/lib/InlineParser.php @@ -1084,7 +1084,9 @@ class Markup_template_plugin extends SimpleMarkup // It's not a Mediawiki template, it's a Wikicreole image if (is_image($imagename)) { - if ($imagename[0] == '/') { + if ((strpos($imagename, "http://") === 0) || (strpos($imagename, "https://") === 0)) { + return LinkImage($imagename, $alt); + } else if ($imagename[0] == '/') { return LinkImage(DATA_PATH . '/' . $imagename, $alt); } else { return LinkImage(getUploadDataPath() . $imagename, $alt); -- 2.45.0