Thread: [Xss-html-filter-commits] SF.net SVN: xss-html-filter:[28] tags
Brought to you by:
micksembwever
|
From: <mic...@us...> - 2011-02-25 11:18:43
|
Revision: 28
http://xss-html-filter.svn.sourceforge.net/xss-html-filter/?rev=28&view=rev
Author: micksembwever
Date: 2011-02-25 11:18:36 +0000 (Fri, 25 Feb 2011)
Log Message:
-----------
[maven-release-plugin] copy for tag xss-html-filter-1.3
Added Paths:
-----------
tags/xss-html-filter-1.3/
tags/xss-html-filter-1.3/pom.xml
tags/xss-html-filter-1.3/src/website/constretto.html
tags/xss-html-filter-1.3/src/website/index.html
Removed Paths:
-------------
tags/xss-html-filter-1.3/pom.xml
tags/xss-html-filter-1.3/src/website/constretto.html
tags/xss-html-filter-1.3/src/website/index.html
Deleted: tags/xss-html-filter-1.3/pom.xml
===================================================================
--- trunk/pom.xml 2011-01-30 09:12:15 UTC (rev 23)
+++ tags/xss-html-filter-1.3/pom.xml 2011-02-25 11:18:36 UTC (rev 28)
@@ -1,250 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>net.sf.xss-html-filter</groupId>
- <artifactId>xss-html-filter</artifactId>
- <version>1.3-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>XSS HTMLFilter</name>
-
-
- <description>
- A Java library for protecting against cross site scripting.
- Hosted at https://sourceforge.net/projects/xss-html-filter/
- </description>
-
- <scm>
- <connection>scm:svn:https://xss-html-filter.svn.sourceforge.net/svnroot/xss-html-filter/trunk</connection>
- <developerConnection>scm:svn:https://xss-html-filter.svn.sourceforge.net/svnroot/xss-html-filter/trunk</developerConnection>
- <url>http://xss-html-filter.svn.sourceforge.net/viewvc/xss-html-filter/trunk/</url>
- </scm>
-
- <licenses>
- <license>
- <name>LGPLv3</name>
- <url>LICENSE.txt</url>
- <distribution>manual</distribution>
- </license>
- </licenses>
-
-
- <issueManagement><url>http://sourceforge.net/tracker/?group_id=344527</url></issueManagement>
-
- <developers>
- <developer>
- <name>Cal Henderson</name>
- <url>http://www.iamcal.com/</url>
- </developer>
- <developer>
- <name>Joseph O'Connell</name>
- <url>http://josephoconnell.com/</url>
- </developer>
- <developer>
- <name>mck</name>
- <id>micksembwever</id>
- <email>mi...@se...</email>
- <url>http://semb.wever.org</url>
- </developer>
- </developers>
-
- <mailingLists>
- <mailingList>
- <name>User & Development List</name>
- <post>xss...@li...</post>
- <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=xss-html-filter-user</archive>
- </mailingList>
- <mailingList>
- <name>Commit List</name>
- <archive>https://sourceforge.net/mailarchive/forum.php?forum_name=xss-html-filter-commits</archive>
- </mailingList>
- </mailingLists>
-
- <properties>
- <!-- java -->
- <version.jdk>1.6</version.jdk>
-
- </properties>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>${version.jdk}</source>
- <target>${version.jdk}</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.1.1</version>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar-no-fork</goal>
- <goal>test-jar-no-fork</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.7</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-all</artifactId>
- <version>1.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <repositories>
- <repository>
- <id>xss-html-filter-releases</id>
- <name>xss-html-filter.sf.net releases</name>
- <url>http://xss-html-filter.sf.net/releases/</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>finntech-snapshot</id>
- <name>xss-html-filter.sf.net snapshots</name>
- <url>http://xss-html-filter.sf.net/snapshots/</url>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
-
- <distributionManagement>
- <repository>
- <id>xss-html-filter-releases</id>
- <name>xss-html-filter.sf.net releases</name>
- <url>scp://shell.sourceforge.net:/home/groups/x/xs/xss-html-filter/htdocs/releases/</url>
- </repository>
- <snapshotRepository>
- <id>xss-html-filter-snapshots</id>
- <name>xss-html-filter.sf.net snapshots</name>
- <url>scp://shell.sourceforge.net:/home/groups/x/xs/xss-html-filter/htdocs/snapshots/</url>
- </snapshotRepository>
- <site>
- <id>xss-html-filter.sf.net</id>
- <url>scp://216.34.181.119/home/groups/x/xs/xss-html-filter/htdocs/site/</url>
- </site>
- </distributionManagement>
-
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-project-info-reports-plugin</artifactId>
- <version>2.1.2</version>
- <reportSets>
- <reportSet>
- <reports>
- <report>index</report>
- <report>dependencies</report>
- <report>dependency-convergence</report>
- <report>issue-tracking</report>
- <report>scm</report>
- <report>project-team</report>
- <report>summary</report>
- <report>cim</report>
- </reports>
- </reportSet>
- </reportSets>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <configuration>
- <formats>
- <format>html</format>
- <format>xml</format>
- </formats>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <reportSets>
- <reportSet>
- <id>html</id>
- <configuration>
- <minmemory>128m</minmemory>
- <maxmemory>512m</maxmemory>
- <source>${version.jdk}</source>
- <docfilessubdirs>true</docfilessubdirs>
- <links>
- <link>http://java.sun.com/javase/6/docs/api/</link>
- <link>http://java.sun.com/javaee/5/docs/api/</link>
- </links>
- </configuration>
- <reports><report>javadoc</report></reports>
- </reportSet>
- </reportSets>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <configuration>
- <threshold>Normal</threshold>
- <xmlOutput>true</xmlOutput>
- <!-- Optional derectory to put findbugs xdoc xml report -->
- <xmlOutputDirectory>target/site</xmlOutputDirectory>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>taglist-maven-plugin</artifactId>
- <configuration>
- <tags>
- <tag>TODO</tag>
- <tag>@todo</tag>
- <tag>FIXME</tag>
- <tag>XXX</tag>
- <tag>hack</tag>
- </tags>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jxr-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-report-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-pmd-plugin</artifactId>
- <configuration>
- <targetJdk>${version.jdk}</targetJdk>
- <rulesets>
- <ruleset>/rulesets/basic.xml</ruleset>
- <ruleset>/rulesets/imports.xml</ruleset>
- <ruleset>/rulesets/unusedcode.xml</ruleset>
- <ruleset>/rulesets/finalizers.xml</ruleset>
- </rulesets>
- </configuration>
- </plugin>
- </plugins>
- </reporting>
-
-</project>
Copied: tags/xss-html-filter-1.3/pom.xml (from rev 27, trunk/pom.xml)
===================================================================
--- tags/xss-html-filter-1.3/pom.xml (rev 0)
+++ tags/xss-html-filter-1.3/pom.xml 2011-02-25 11:18:36 UTC (rev 28)
@@ -0,0 +1,250 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>net.sf.xss-html-filter</groupId>
+ <artifactId>xss-html-filter</artifactId>
+ <version>1.3</version>
+ <packaging>jar</packaging>
+ <name>XSS HTMLFilter</name>
+
+
+ <description>
+ A Java library for protecting against cross site scripting.
+ Hosted at https://sourceforge.net/projects/xss-html-filter/
+ </description>
+
+ <scm>
+ <connection>scm:svn:https://xss-html-filter.svn.sourceforge.net/svnroot/xss-html-filter/tags/xss-html-filter-1.3</connection>
+ <developerConnection>scm:svn:https://xss-html-filter.svn.sourceforge.net/svnroot/xss-html-filter/tags/xss-html-filter-1.3</developerConnection>
+ <url>http://xss-html-filter.svn.sourceforge.net/viewvc/xss-html-filter/tags/xss-html-filter-1.3</url>
+ </scm>
+
+ <licenses>
+ <license>
+ <name>LGPLv3</name>
+ <url>LICENSE.txt</url>
+ <distribution>manual</distribution>
+ </license>
+ </licenses>
+
+
+ <issueManagement><url>http://sourceforge.net/tracker/?group_id=344527</url></issueManagement>
+
+ <developers>
+ <developer>
+ <name>Cal Henderson</name>
+ <url>http://www.iamcal.com/</url>
+ </developer>
+ <developer>
+ <name>Joseph O'Connell</name>
+ <url>http://josephoconnell.com/</url>
+ </developer>
+ <developer>
+ <name>mck</name>
+ <id>micksembwever</id>
+ <email>mi...@se...</email>
+ <url>http://semb.wever.org</url>
+ </developer>
+ </developers>
+
+ <mailingLists>
+ <mailingList>
+ <name>User & Development List</name>
+ <post>xss...@li...</post>
+ <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=xss-html-filter-user</archive>
+ </mailingList>
+ <mailingList>
+ <name>Commit List</name>
+ <archive>https://sourceforge.net/mailarchive/forum.php?forum_name=xss-html-filter-commits</archive>
+ </mailingList>
+ </mailingLists>
+
+ <properties>
+ <!-- java -->
+ <version.jdk>1.6</version.jdk>
+
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>${version.jdk}</source>
+ <target>${version.jdk}</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.1</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar-no-fork</goal>
+ <goal>test-jar-no-fork</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.7</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest-all</artifactId>
+ <version>1.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <repositories>
+ <repository>
+ <id>xss-html-filter-releases</id>
+ <name>xss-html-filter.sf.net releases</name>
+ <url>http://xss-html-filter.sf.net/releases/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>xss-html-filter-snapshot</id>
+ <name>xss-html-filter.sf.net snapshots</name>
+ <url>http://xss-html-filter.sf.net/snapshots/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <distributionManagement>
+ <repository>
+ <id>xss-html-filter-releases</id>
+ <name>xss-html-filter.sf.net releases</name>
+ <url>scp://shell.sourceforge.net:/home/project-web/xss-html-filter/htdocs/releases/</url>
+ </repository>
+ <snapshotRepository>
+ <id>xss-html-filter-snapshots</id>
+ <name>xss-html-filter.sf.net snapshots</name>
+ <url>scp://shell.sourceforge.net:/home/project-web/xss-html-filter/htdocs/snapshots/</url>
+ </snapshotRepository>
+ <site>
+ <id>xss-html-filter.sf.net</id>
+ <url>scp://web.sourceforge.net/home/project-web/xss-html-filter/htdocs/site/</url>
+ </site>
+ </distributionManagement>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.1.2</version>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>index</report>
+ <report>dependencies</report>
+ <report>dependency-convergence</report>
+ <report>issue-tracking</report>
+ <report>scm</report>
+ <report>project-team</report>
+ <report>summary</report>
+ <report>cim</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>html</format>
+ <format>xml</format>
+ </formats>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <reportSets>
+ <reportSet>
+ <id>html</id>
+ <configuration>
+ <minmemory>128m</minmemory>
+ <maxmemory>512m</maxmemory>
+ <source>${version.jdk}</source>
+ <docfilessubdirs>true</docfilessubdirs>
+ <links>
+ <link>http://java.sun.com/javase/6/docs/api/</link>
+ <link>http://java.sun.com/javaee/5/docs/api/</link>
+ </links>
+ </configuration>
+ <reports><report>javadoc</report></reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <configuration>
+ <threshold>Normal</threshold>
+ <xmlOutput>true</xmlOutput>
+ <!-- Optional derectory to put findbugs xdoc xml report -->
+ <xmlOutputDirectory>target/site</xmlOutputDirectory>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>taglist-maven-plugin</artifactId>
+ <configuration>
+ <tags>
+ <tag>TODO</tag>
+ <tag>@todo</tag>
+ <tag>FIXME</tag>
+ <tag>XXX</tag>
+ <tag>hack</tag>
+ </tags>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jxr-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-pmd-plugin</artifactId>
+ <configuration>
+ <targetJdk>${version.jdk}</targetJdk>
+ <rulesets>
+ <ruleset>/rulesets/basic.xml</ruleset>
+ <ruleset>/rulesets/imports.xml</ruleset>
+ <ruleset>/rulesets/unusedcode.xml</ruleset>
+ <ruleset>/rulesets/finalizers.xml</ruleset>
+ </rulesets>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+
+</project>
Deleted: tags/xss-html-filter-1.3/src/website/constretto.html
===================================================================
--- trunk/src/website/constretto.html 2011-01-30 09:12:15 UTC (rev 23)
+++ tags/xss-html-filter-1.3/src/website/constretto.html 2011-02-25 11:18:36 UTC (rev 28)
@@ -1,82 +0,0 @@
-<html>
-<head>
- <title>XSS HTML Filter: A Java library for protecting against cross site scripting</title>
- <style><!--
- body { background-color: #cc9; }
-
-#announce {
- padding-left: 25%;
- padding-right: 25%;
- margin: 10px;
- padding-top: 30px;
-}
-
-
- #announce h1 { font-weight: normal; font-family: Arial, sans-serif; font-size: 16px; color: #930; }
- #announce h2 { font-weight: normal; font-family: Arial, sans-serif; font-size: 14px; color: #930; }
- #announce p { font-family: Arial, sans-serif; font-size: 11px; color: #663; }
-
-a {
- font-family: Courier;
- font-size: 12px;
- text-decoration: none;
- color: #666;
-}
-
-a:hover { color: #930; }
-
- --></style>
- <link rel="SHORTCUT ICON" href="/favicon.ico">
-</head>
-<body>
-
-<div id="announce">
-<h1>HTML filtering utility for Java</h1>
-
-<h2>Using with constretto</h2>
-<p>
-It's easy to keep all the configuration in constretto, passing it in via the HTMLFilter( Map ) constructor.<br/>
-For example to load all configuration options:
-<pre>
-
-import static ....ConstrettoConfigurationFactory.iniFile;
-import static org.springframework.core.io.ResourceLoader.CLASSPATH_URL_PREFIX;
-
-public static final Map<String,Object> CONFIGURATION
- = Collections.unmodifiableMap(new HashMap<String,Object>(){{
-
- final ConstrettoConfiguration constretto = iniFile(CLASSPATH_URL_PREFIX + "my-constretto-file.ini");
- final Map<String, List<String>> allowed = new HashMap<String, List<String>>();
- for(String allow : constretto.evaluateTo("HTMLFilter.vAllowed", "").split("\\s*;\\s*")){
- if(0 < allow.indexOf(':')){
- final String name = allow.split("\\s*:\\s*")[0];
- final String[] attributes = allow.split("\\s*:\\s*")[1].split("\\s*,\\s*");
- allowed.put(name, Arrays.asList(attributes));
- }else{
- allowed.put(allow, Collections.<String>emptyList());
- }
- }
- put("vAllowed", allowed);
- put("vSelfClosingTags", constretto.evaluateTo("HTMLFilter.vSelfClosingTags", "").split("\\s*,\\s*"));
- put("vNeedClosingTags", constretto.evaluateTo("HTMLFilter.vNeedClosingTags", "").split("\\s*,\\s*"));
- put("vDisallowed", constretto.evaluateTo("HTMLFilter.vDisallowed", "").split("\\s*,\\s*"));
- put("vAllowedProtocols", constretto.evaluateTo("HTMLFilter.vAllowedProtocols", "").split("\\s*,\\s*"));
- put("vProtocolAtts", constretto.evaluateTo("HTMLFilter.vProtocolAtts", "").split("\\s*,\\s*"));
- put("vRemoveBlanks", constretto.evaluateTo("HTMLFilter.vRemoveBlanks", "").split("\\s*,\\s*"));
- put("vAllowedEntities", constretto.evaluateTo("HTMLFilter.vAllowedEntities", "").split("\\s*,\\s*"));
- put("stripComment", constretto.evaluateTo("HTMLFilter.stripComment", Boolean.TRUE));
- put("alwaysMakeTags", constretto.evaluateTo("HTMLFilter.alwaysMakeTags", Boolean.TRUE));
-}});
-...
-String input = ...
-String clean = new HTMLFilter( CONFIGURATION ).filter(input);
-</pre></p>
-<p>
- Here the property values in my-constretto-file.ini are comma separated,
- except for "HTMLFilter.vAllowed" which is semi-colon separated. Each value is then a comma separate list,
- the first item being the element name allowed and subsequent items being the attributes allowed within that element.
-</p>
-</div>
-
-</body>
-</html>
Copied: tags/xss-html-filter-1.3/src/website/constretto.html (from rev 24, trunk/src/website/constretto.html)
===================================================================
--- tags/xss-html-filter-1.3/src/website/constretto.html (rev 0)
+++ tags/xss-html-filter-1.3/src/website/constretto.html 2011-02-25 11:18:36 UTC (rev 28)
@@ -0,0 +1,82 @@
+<html>
+<head>
+ <title>XSS HTML Filter: A Java library for protecting against cross site scripting</title>
+ <style><!--
+ body { background-color: #cc9; }
+
+#announce {
+ padding-left: 25%;
+ padding-right: 25%;
+ margin: 10px;
+ padding-top: 30px;
+}
+
+
+ #announce h1 { font-weight: normal; font-family: Arial, sans-serif; font-size: 16px; color: #930; }
+ #announce h2 { font-weight: normal; font-family: Arial, sans-serif; font-size: 14px; color: #930; }
+ #announce p { font-family: Arial, sans-serif; font-size: 11px; color: #663; }
+
+a {
+ font-family: Courier;
+ font-size: 12px;
+ text-decoration: none;
+ color: #666;
+}
+
+a:hover { color: #930; }
+
+ --></style>
+ <link rel="SHORTCUT ICON" href="/favicon.ico">
+</head>
+<body>
+
+<div id="announce">
+<h1>Open Sourced HTML filtering utility for Java</h1>
+
+<h2>Using with constretto</h2>
+<p>
+It's easy to keep all the configuration in constretto, passing it in via the HTMLFilter( Map ) constructor.<br/>
+For example to load all configuration options:
+<pre>
+
+import static ....ConstrettoConfigurationFactory.iniFile;
+import static org.springframework.core.io.ResourceLoader.CLASSPATH_URL_PREFIX;
+
+public static final Map<String,Object> CONFIGURATION
+ = Collections.unmodifiableMap(new HashMap<String,Object>(){{
+
+ final ConstrettoConfiguration constretto = iniFile(CLASSPATH_URL_PREFIX + "my-constretto-file.ini");
+ final Map<String, List<String>> allowed = new HashMap<String, List<String>>();
+ for(String allow : constretto.evaluateTo("HTMLFilter.vAllowed", "").split("\\s*;\\s*")){
+ if(0 < allow.indexOf(':')){
+ final String name = allow.split("\\s*:\\s*")[0];
+ final String[] attributes = allow.split("\\s*:\\s*")[1].split("\\s*,\\s*");
+ allowed.put(name, Arrays.asList(attributes));
+ }else{
+ allowed.put(allow, Collections.<String>emptyList());
+ }
+ }
+ put("vAllowed", allowed);
+ put("vSelfClosingTags", constretto.evaluateTo("HTMLFilter.vSelfClosingTags", "").split("\\s*,\\s*"));
+ put("vNeedClosingTags", constretto.evaluateTo("HTMLFilter.vNeedClosingTags", "").split("\\s*,\\s*"));
+ put("vDisallowed", constretto.evaluateTo("HTMLFilter.vDisallowed", "").split("\\s*,\\s*"));
+ put("vAllowedProtocols", constretto.evaluateTo("HTMLFilter.vAllowedProtocols", "").split("\\s*,\\s*"));
+ put("vProtocolAtts", constretto.evaluateTo("HTMLFilter.vProtocolAtts", "").split("\\s*,\\s*"));
+ put("vRemoveBlanks", constretto.evaluateTo("HTMLFilter.vRemoveBlanks", "").split("\\s*,\\s*"));
+ put("vAllowedEntities", constretto.evaluateTo("HTMLFilter.vAllowedEntities", "").split("\\s*,\\s*"));
+ put("stripComment", constretto.evaluateTo("HTMLFilter.stripComment", Boolean.TRUE));
+ put("alwaysMakeTags", constretto.evaluateTo("HTMLFilter.alwaysMakeTags", Boolean.TRUE));
+}});
+...
+String input = ...
+String clean = new HTMLFilter( CONFIGURATION ).filter(input);
+</pre></p>
+<p>
+ Here the property values in my-constretto-file.ini are comma separated,
+ except for "HTMLFilter.vAllowed" which is semi-colon separated. Each value is then a comma separate list,
+ the first item being the element name allowed and subsequent items being the attributes allowed within that element.
+</p>
+</div>
+
+</body>
+</html>
Deleted: tags/xss-html-filter-1.3/src/website/index.html
===================================================================
--- trunk/src/website/index.html 2011-01-30 09:12:15 UTC (rev 23)
+++ tags/xss-html-filter-1.3/src/website/index.html 2011-02-25 11:18:36 UTC (rev 28)
@@ -1,92 +0,0 @@
-<html>
-<head>
- <title>XSS HTML Filter: A Java library for protecting against cross site scripting</title>
- <style><!--
- body { background-color: #cc9; }
-
-#announce {
- padding-left: 25%;
- padding-right: 25%;
- margin: 10px;
- padding-top: 30px;
-}
-
-
- #announce h1 { font-weight: normal; font-family: Arial, sans-serif; font-size: 16px; color: #930; }
- #announce h2 { font-weight: normal; font-family: Arial, sans-serif; font-size: 14px; color: #930; }
- #announce p { font-family: Arial, sans-serif; font-size: 11px; color: #663; }
-
-a {
- font-family: Courier;
- font-size: 12px;
- text-decoration: none;
- color: #666;
-}
-
-a:hover { color: #930; }
-
- --></style>
- <link rel="SHORTCUT ICON" href="/favicon.ico">
-</head>
-<body>
-
-<div id="announce">
-<h1>HTML filtering utility for Java</h1>
-
-<p>
-<ul>
- <li><a href="http://xss-http-filter.svn.sourceforge.net/viewvc/xss-http-filter/trunk/src/main/java/net/sf/xsshttpfilter/HTMLFilter.java?view=markup">View Source</a></li>
- <li><a href="/site/">Project information</a></li>
-</ul>
-</p>
-
-<p>
-This utility is a single class, HTMLFilter, which can be used to parse user-submitted input and sanitize it against potential cross site scripting attacks, malicious html, or simply badly formed html. This version, written in Java, is largely a translation of <a href="http://code.iamcal.com/php/lib_filter/">lib_filter</a>, the original work of <a href="http://www.iamcal.com/">Cal Henderson</a> written in PHP.
-</p>
-
-<p>
-Combined with this code is a Test class for unit testing, designed to be executed in <a href="http://www.junit.org/">JUnit</a>.
-</p><br/>
-
-<h2>Processing HTML Input</h2>
-
-<p>
-Sample usage:
-
-<blockquote><pre>
-// retrieve input from user...
-String input = ...
-String clean = new HTMLInputFilter().filter( input );
-</pre></blockquote>
-</p>
-
-<p>
-There's also an <a href="constretto.html">example using constretto</a>.
-</p><br/>
-
-<h2>Building with maven</h2>
-<p>
-To include xss-http-filter into a maven built project add the following to your pom.xml (in the corresponding sections)
-<br/><pre>
- <dependency>
- <groupId>net.sf.xss-http-filter</groupId>
...
[truncated message content] |
|
From: <mic...@us...> - 2011-06-11 12:23:40
|
Revision: 33
http://xss-html-filter.svn.sourceforge.net/xss-html-filter/?rev=33&view=rev
Author: micksembwever
Date: 2011-06-11 12:23:32 +0000 (Sat, 11 Jun 2011)
Log Message:
-----------
[maven-release-plugin] copy for tag xss-html-filter-1.4
Added Paths:
-----------
tags/xss-html-filter-1.4/
tags/xss-html-filter-1.4/pom.xml
Removed Paths:
-------------
tags/xss-html-filter-1.4/pom.xml
Deleted: tags/xss-html-filter-1.4/pom.xml
===================================================================
--- trunk/pom.xml 2011-06-03 14:40:34 UTC (rev 31)
+++ tags/xss-html-filter-1.4/pom.xml 2011-06-11 12:23:32 UTC (rev 33)
@@ -1,250 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>net.sf.xss-html-filter</groupId>
- <artifactId>xss-html-filter</artifactId>
- <version>1.4-SNAPSHOT</version>
- <packaging>jar</packaging>
- <name>XSS HTMLFilter</name>
-
-
- <description>
- A Java library for protecting against cross site scripting.
- Hosted at https://sourceforge.net/projects/xss-html-filter/
- </description>
-
- <scm>
- <connection>scm:svn:https://xss-html-filter.svn.sourceforge.net/svnroot/xss-html-filter/trunk</connection>
- <developerConnection>scm:svn:https://xss-html-filter.svn.sourceforge.net/svnroot/xss-html-filter/trunk</developerConnection>
- <url>http://xss-html-filter.svn.sourceforge.net/viewvc/xss-html-filter/trunk/</url>
- </scm>
-
- <licenses>
- <license>
- <name>LGPLv3</name>
- <url>LICENSE.txt</url>
- <distribution>manual</distribution>
- </license>
- </licenses>
-
-
- <issueManagement><url>http://sourceforge.net/tracker/?group_id=344527</url></issueManagement>
-
- <developers>
- <developer>
- <name>Cal Henderson</name>
- <url>http://www.iamcal.com/</url>
- </developer>
- <developer>
- <name>Joseph O'Connell</name>
- <url>http://josephoconnell.com/</url>
- </developer>
- <developer>
- <name>mck</name>
- <id>micksembwever</id>
- <email>mi...@se...</email>
- <url>http://semb.wever.org</url>
- </developer>
- </developers>
-
- <mailingLists>
- <mailingList>
- <name>User & Development List</name>
- <post>xss...@li...</post>
- <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=xss-html-filter-user</archive>
- </mailingList>
- <mailingList>
- <name>Commit List</name>
- <archive>https://sourceforge.net/mailarchive/forum.php?forum_name=xss-html-filter-commits</archive>
- </mailingList>
- </mailingLists>
-
- <properties>
- <!-- java -->
- <version.jdk>1.6</version.jdk>
-
- </properties>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>${version.jdk}</source>
- <target>${version.jdk}</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.1.1</version>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar-no-fork</goal>
- <goal>test-jar-no-fork</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.7</version>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.hamcrest</groupId>
- <artifactId>hamcrest-all</artifactId>
- <version>1.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <repositories>
- <repository>
- <id>xss-html-filter-releases</id>
- <name>xss-html-filter.sf.net releases</name>
- <url>http://xss-html-filter.sf.net/releases/</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- <repository>
- <id>xss-html-filter-snapshot</id>
- <name>xss-html-filter.sf.net snapshots</name>
- <url>http://xss-html-filter.sf.net/snapshots/</url>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
-
- <distributionManagement>
- <repository>
- <id>xss-html-filter-releases</id>
- <name>xss-html-filter.sf.net releases</name>
- <url>scp://shell.sourceforge.net:/home/project-web/xss-html-filter/htdocs/releases/</url>
- </repository>
- <snapshotRepository>
- <id>xss-html-filter-snapshots</id>
- <name>xss-html-filter.sf.net snapshots</name>
- <url>scp://shell.sourceforge.net:/home/project-web/xss-html-filter/htdocs/snapshots/</url>
- </snapshotRepository>
- <site>
- <id>xss-html-filter.sf.net</id>
- <url>scp://web.sourceforge.net/home/project-web/xss-html-filter/htdocs/site/</url>
- </site>
- </distributionManagement>
-
- <reporting>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-project-info-reports-plugin</artifactId>
- <version>2.1.2</version>
- <reportSets>
- <reportSet>
- <reports>
- <report>index</report>
- <report>dependencies</report>
- <report>dependency-convergence</report>
- <report>issue-tracking</report>
- <report>scm</report>
- <report>project-team</report>
- <report>summary</report>
- <report>cim</report>
- </reports>
- </reportSet>
- </reportSets>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <configuration>
- <formats>
- <format>html</format>
- <format>xml</format>
- </formats>
- </configuration>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- <reportSets>
- <reportSet>
- <id>html</id>
- <configuration>
- <minmemory>128m</minmemory>
- <maxmemory>512m</maxmemory>
- <source>${version.jdk}</source>
- <docfilessubdirs>true</docfilessubdirs>
- <links>
- <link>http://java.sun.com/javase/6/docs/api/</link>
- <link>http://java.sun.com/javaee/5/docs/api/</link>
- </links>
- </configuration>
- <reports><report>javadoc</report></reports>
- </reportSet>
- </reportSets>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <configuration>
- <threshold>Normal</threshold>
- <xmlOutput>true</xmlOutput>
- <!-- Optional derectory to put findbugs xdoc xml report -->
- <xmlOutputDirectory>target/site</xmlOutputDirectory>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>taglist-maven-plugin</artifactId>
- <configuration>
- <tags>
- <tag>TODO</tag>
- <tag>@todo</tag>
- <tag>FIXME</tag>
- <tag>XXX</tag>
- <tag>hack</tag>
- </tags>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jxr-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-report-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-pmd-plugin</artifactId>
- <configuration>
- <targetJdk>${version.jdk}</targetJdk>
- <rulesets>
- <ruleset>/rulesets/basic.xml</ruleset>
- <ruleset>/rulesets/imports.xml</ruleset>
- <ruleset>/rulesets/unusedcode.xml</ruleset>
- <ruleset>/rulesets/finalizers.xml</ruleset>
- </rulesets>
- </configuration>
- </plugin>
- </plugins>
- </reporting>
-
-</project>
Copied: tags/xss-html-filter-1.4/pom.xml (from rev 32, trunk/pom.xml)
===================================================================
--- tags/xss-html-filter-1.4/pom.xml (rev 0)
+++ tags/xss-html-filter-1.4/pom.xml 2011-06-11 12:23:32 UTC (rev 33)
@@ -0,0 +1,250 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>net.sf.xss-html-filter</groupId>
+ <artifactId>xss-html-filter</artifactId>
+ <version>1.4</version>
+ <packaging>jar</packaging>
+ <name>XSS HTMLFilter</name>
+
+
+ <description>
+ A Java library for protecting against cross site scripting.
+ Hosted at https://sourceforge.net/projects/xss-html-filter/
+ </description>
+
+ <scm>
+ <connection>scm:svn:https://xss-html-filter.svn.sourceforge.net/svnroot/xss-html-filter/tags/xss-html-filter-1.4</connection>
+ <developerConnection>scm:svn:https://xss-html-filter.svn.sourceforge.net/svnroot/xss-html-filter/tags/xss-html-filter-1.4</developerConnection>
+ <url>http://xss-html-filter.svn.sourceforge.net/viewvc/xss-html-filter/tags/xss-html-filter-1.4</url>
+ </scm>
+
+ <licenses>
+ <license>
+ <name>LGPLv3</name>
+ <url>LICENSE.txt</url>
+ <distribution>manual</distribution>
+ </license>
+ </licenses>
+
+
+ <issueManagement><url>http://sourceforge.net/tracker/?group_id=344527</url></issueManagement>
+
+ <developers>
+ <developer>
+ <name>Cal Henderson</name>
+ <url>http://www.iamcal.com/</url>
+ </developer>
+ <developer>
+ <name>Joseph O'Connell</name>
+ <url>http://josephoconnell.com/</url>
+ </developer>
+ <developer>
+ <name>mck</name>
+ <id>micksembwever</id>
+ <email>mi...@se...</email>
+ <url>http://semb.wever.org</url>
+ </developer>
+ </developers>
+
+ <mailingLists>
+ <mailingList>
+ <name>User & Development List</name>
+ <post>xss...@li...</post>
+ <archive>http://sourceforge.net/mailarchive/forum.php?forum_name=xss-html-filter-user</archive>
+ </mailingList>
+ <mailingList>
+ <name>Commit List</name>
+ <archive>https://sourceforge.net/mailarchive/forum.php?forum_name=xss-html-filter-commits</archive>
+ </mailingList>
+ </mailingLists>
+
+ <properties>
+ <!-- java -->
+ <version.jdk>1.6</version.jdk>
+
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>${version.jdk}</source>
+ <target>${version.jdk}</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.1.1</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar-no-fork</goal>
+ <goal>test-jar-no-fork</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.7</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.hamcrest</groupId>
+ <artifactId>hamcrest-all</artifactId>
+ <version>1.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <repositories>
+ <repository>
+ <id>xss-html-filter-releases</id>
+ <name>xss-html-filter.sf.net releases</name>
+ <url>http://xss-html-filter.sf.net/releases/</url>
+ <releases>
+ <enabled>true</enabled>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>xss-html-filter-snapshot</id>
+ <name>xss-html-filter.sf.net snapshots</name>
+ <url>http://xss-html-filter.sf.net/snapshots/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
+ <distributionManagement>
+ <repository>
+ <id>xss-html-filter-releases</id>
+ <name>xss-html-filter.sf.net releases</name>
+ <url>scp://shell.sourceforge.net:/home/project-web/xss-html-filter/htdocs/releases/</url>
+ </repository>
+ <snapshotRepository>
+ <id>xss-html-filter-snapshots</id>
+ <name>xss-html-filter.sf.net snapshots</name>
+ <url>scp://shell.sourceforge.net:/home/project-web/xss-html-filter/htdocs/snapshots/</url>
+ </snapshotRepository>
+ <site>
+ <id>xss-html-filter.sf.net</id>
+ <url>scp://web.sourceforge.net/home/project-web/xss-html-filter/htdocs/site/</url>
+ </site>
+ </distributionManagement>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-project-info-reports-plugin</artifactId>
+ <version>2.1.2</version>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>index</report>
+ <report>dependencies</report>
+ <report>dependency-convergence</report>
+ <report>issue-tracking</report>
+ <report>scm</report>
+ <report>project-team</report>
+ <report>summary</report>
+ <report>cim</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>html</format>
+ <format>xml</format>
+ </formats>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <reportSets>
+ <reportSet>
+ <id>html</id>
+ <configuration>
+ <minmemory>128m</minmemory>
+ <maxmemory>512m</maxmemory>
+ <source>${version.jdk}</source>
+ <docfilessubdirs>true</docfilessubdirs>
+ <links>
+ <link>http://java.sun.com/javase/6/docs/api/</link>
+ <link>http://java.sun.com/javaee/5/docs/api/</link>
+ </links>
+ </configuration>
+ <reports><report>javadoc</report></reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>findbugs-maven-plugin</artifactId>
+ <configuration>
+ <threshold>Normal</threshold>
+ <xmlOutput>true</xmlOutput>
+ <!-- Optional derectory to put findbugs xdoc xml report -->
+ <xmlOutputDirectory>target/site</xmlOutputDirectory>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>taglist-maven-plugin</artifactId>
+ <configuration>
+ <tags>
+ <tag>TODO</tag>
+ <tag>@todo</tag>
+ <tag>FIXME</tag>
+ <tag>XXX</tag>
+ <tag>hack</tag>
+ </tags>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jxr-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-pmd-plugin</artifactId>
+ <configuration>
+ <targetJdk>${version.jdk}</targetJdk>
+ <rulesets>
+ <ruleset>/rulesets/basic.xml</ruleset>
+ <ruleset>/rulesets/imports.xml</ruleset>
+ <ruleset>/rulesets/unusedcode.xml</ruleset>
+ <ruleset>/rulesets/finalizers.xml</ruleset>
+ </rulesets>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+
+</project>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|