X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/8e1d3422ac745d49bcf56152f11d5b07ea45cb38..6bdc514b94fb0127159c809e8f311cccc230d4ee:/upload.inc.php
diff --git a/upload.inc.php b/upload.inc.php
index f2e101a..962bedc 100644
--- a/upload.inc.php
+++ b/upload.inc.php
@@ -63,6 +63,7 @@ function messagehtml($input)
'{<([^>\s|]+)[\s|]([^>]+)>}' => '$2', # hyperlink
"/\r\n?/" => "\n", # unix newlines
"/ +\n/" => "
", # trailing spaces for hard line break
+ '{^(/data/.*\.jpe?g)\z}m' => '', # image reference
"/^[-*] (.*)$\n?/m" => '
$1
\n", # paragraph "{^(