Author: tyrell
Date: Wed May  7 22:06:49 2008
New Revision: 16653

Log:

Including some fixes suggested in MASHUP-646. We now filter announcements using 
a token included in the content.

Modified:
   trunk/mashup/java/modules/www/ajax_announcements.jsp

Modified: trunk/mashup/java/modules/www/ajax_announcements.jsp
==============================================================================
--- trunk/mashup/java/modules/www/ajax_announcements.jsp        (original)
+++ trunk/mashup/java/modules/www/ajax_announcements.jsp        Wed May  7 
22:06:49 2008
@@ -24,6 +24,11 @@
     String announcement = 
announcementsFetcher.get(MashupUtils.getServerUUID(), 
RegistryUtils.getAnnouncementsUrl());
     if (announcement == null) {
         announcement = "";
+    }else{
+        // Validate the announcement
+        if(!announcement.contains("org.wso2.mashup.announcements")){
+            announcement = "";
+        }
     }
 %>
 <%=announcement%>

_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to