Author: toad
Date: 2008-05-06 21:36:51 +0000 (Tue, 06 May 2008)
New Revision: 19807

Modified:
   trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
Log:
It's "safari" not "Safari". Do toLowerCase() first when checking.
Fixes activelinks still showing up on Safari despite fix that was supposed to 
prevent this because Safari can't handle it.

Modified: trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java  2008-05-06 
21:22:58 UTC (rev 19806)
+++ trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java  2008-05-06 
21:36:51 UTC (rev 19807)
@@ -564,7 +564,7 @@

         HTMLNode bookmarkBoxContent = bookmarkBox.addChild("div", "class", 
"infobox-content");
         HTMLNode bookmarksList = bookmarkBoxContent.addChild("ul", "id", 
"bookmarks");
-        addCategoryToList(BookmarkManager.MAIN_CATEGORY, bookmarksList, 
useragent != null && useragent.indexOf("Safari") >= 0);
+        addCategoryToList(BookmarkManager.MAIN_CATEGORY, bookmarksList, 
useragent != null && useragent.toLowerCase().indexOf("safari") >= 0);

         // Fetch-a-key box
         HTMLNode fetchKeyBox = 
contentNode.addChild(ctx.getPageMaker().getInfobox("infobox-normal", 
l10n("fetchKeyLabel")));


Reply via email to