changeset 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 62fcbcbb8d92
children 4e9b5e9610da
files MoinMoin/wikiutil.py docs/CHANGES
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
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):
--- a/docs/CHANGES	Sat Nov 05 22:00:48 2005 +0000
+++ b/docs/CHANGES	Sat Nov 05 22:46:35 2005 +0000
@@ -1,6 +1,9 @@
 MoinMoin Version History
 ========================
 
+Current:
+    * added support for linking to .ico and .bmp
+
 Version 1.5.0beta2:
   Fixes:
     * fix wrong _ in title links (MoinMoinBugs/AddSpaceWikiNameAtHead)