X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/ecfc420d52ce7983a6361ccc7dec24fd46ec2d07..fc1eaa7b91bd44d7939c67b1d3d8aef50af3c5db:/upload.inc.php
diff --git a/upload.inc.php b/upload.inc.php
index f2e101a..22db140 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 "{^(