for content_data, remove the really evil tags, for the abstract don't remove everyht...
authormh <mh>
Tue, 10 Dec 2002 10:19:03 +0000 (10:19 +0000)
committermh <mh>
Tue, 10 Dec 2002 10:19:03 +0000 (10:19 +0000)
source/mircoders/servlet/ServletModuleOpenIndy.java

index 3ce0a00..89d8237 100755 (executable)
@@ -73,7 +73,7 @@ import mircoders.media.MediaRequest;
  *    open-postings to the newswire
  *
  * @author $Author: mh $
- * @version $Revision: 1.38.2.3 $ $Date: 2002/11/26 01:52:55 $
+ * @version $Revision: 1.38.2.4 $ $Date: 2002/12/10 10:19:03 $
  *
  */
 
@@ -311,12 +311,18 @@ public class ServletModuleOpenIndy extends ServletModule
         String v=(String)withValues.get(k);
         
         if (k.equals("content_data")){
-          //this doesn't quite work yet, so for now, all html goes
+          //this doesn't quite work yet, so for now, just delete the really
+          //bad ones.
           //withValues.put(k,StringUtil.approveHTMLTags(v));
-          //withValues.put(k,StringUtil.removeHTMLTags(v));
+          withValues.put(k,StringUtil.deleteForbiddenTags(v));
+        } else if (k.equals("description")) {
+          withValues.put(k,StringUtil.deleteForbiddenTags(v));
+          withValues.put(k,StringUtil.deleteHTMLTableTags(v));
         } else {
+          //we don't want people fucking with the author/title, etc..
           withValues.put(k,StringUtil.removeHTMLTags(v));
         }
+
         
       }