changeset 819:cbdf642bc58e

fix LinkSearch, ensure lowercase comparison
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Sat, 10 Jun 2006 10:48:33 +0200
parents 7250d2be26d6
children c0b243a72744
files MoinMoin/search.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search.py	Sat Jun 10 10:43:48 2006 +0200
+++ b/MoinMoin/search.py	Sat Jun 10 10:48:33 2006 +0200
@@ -436,12 +436,12 @@
         Found = True
         
         for link in page.getPageLinks(page.request):
-            if ((self.static and self.pattern == link) or
+            if ((self.static and self.pattern.lower() == link.lower()) or
                 (not self.static and self.search_re.match(link))):
                 break
         else:
             Found = False
-                
+
         if Found:
             # Search in page text
             results = self.textsearch.search(page)