* 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 $
*
*/
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));
}
+
}