diff MoinMoin/wikiutil.py @ 198:76c964712b0f

added support for linking to .ico and .bmp imported from: moin--main--1.5--patch-200
author Thomas Waldmann <tw@waldmann-edv.de>
date Sat, 05 Nov 2005 22:46:35 +0000
parents 722b8f648630
children 0a40d8a4057e
line wrap: on
line diff
--- a/MoinMoin/wikiutil.py	Sat Nov 05 22:00:48 2005 +0000
+++ b/MoinMoin/wikiutil.py	Sat Nov 05 22:46:35 2005 +0000
@@ -979,7 +979,7 @@
     @return: true if url points to a picture
     """
     extpos = url.rfind(".")
-    return extpos > 0 and url[extpos:].lower() in ['.gif', '.jpg', '.jpeg', '.png']
+    return extpos > 0 and url[extpos:].lower() in ['.gif', '.jpg', '.jpeg', '.png', '.bmp', '.ico', ]
 
 
 def link_tag(request, params, text=None, formatter=None, on=None, **kw):