projects
/
mir.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
69742cc
)
for content_data, remove the really evil tags, for the abstract don't remove everyht...
author
mh
<mh>
Tue, 10 Dec 2002 10:19:03 +0000
(10:19 +0000)
committer
mh
<mh>
Tue, 10 Dec 2002 10:19:03 +0000
(10:19 +0000)
source/mircoders/servlet/ServletModuleOpenIndy.java
patch
|
blob
|
history
diff --git
a/source/mircoders/servlet/ServletModuleOpenIndy.java
b/source/mircoders/servlet/ServletModuleOpenIndy.java
index
3ce0a00
..
89d8237
100755
(executable)
--- 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 $
* 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")){
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.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 {
} else {
+ //we don't want people fucking with the author/title, etc..
withValues.put(k,StringUtil.removeHTMLTags(v));
}
withValues.put(k,StringUtil.removeHTMLTags(v));
}
+
}
}