From: mh Date: Tue, 10 Dec 2002 10:19:03 +0000 (+0000) Subject: for content_data, remove the really evil tags, for the abstract don't remove everyht... X-Git-Tag: MIR_1_0_0_RC4~7 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=b1f098e37cd116a6d084d8688d350b8299197450;p=mir.git for content_data, remove the really evil tags, for the abstract don't remove everyhting, just the really bad stuff including table tags. All other fields lose all html tags --- diff --git a/source/mircoders/servlet/ServletModuleOpenIndy.java b/source/mircoders/servlet/ServletModuleOpenIndy.java index 3ce0a00c..89d8237f 100755 --- a/source/mircoders/servlet/ServletModuleOpenIndy.java +++ b/source/mircoders/servlet/ServletModuleOpenIndy.java @@ -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)); } + }