Skip to content

Commit 5810ff0

Browse files
author
planetlevel
committed
comment out the native2ascii for now
1 parent 0af29da commit 5810ff0

5 files changed

Lines changed: 73 additions & 2 deletions

File tree

.classpath

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
33
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
4+
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
45
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
5-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
6+
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
67
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
8+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.5.0_19"/>
79
<classpathentry kind="output" path="target/classes"/>
810
</classpath>

.project

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,24 @@
99
This can result in significant cost savings across the SDLC.</comment>
1010
<projects/>
1111
<buildSpec>
12+
<buildCommand>
13+
<name>org.eclipse.wst.common.project.facet.core.builder</name>
14+
</buildCommand>
1215
<buildCommand>
1316
<name>org.eclipse.jdt.core.javabuilder</name>
1417
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.wst.validation.validationbuilder</name>
20+
</buildCommand>
1521
<buildCommand>
1622
<name>org.maven.ide.eclipse.maven2Builder</name>
1723
</buildCommand>
1824
</buildSpec>
1925
<natures>
2026
<nature>org.maven.ide.eclipse.maven2Nature</nature>
27+
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
28+
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
2129
<nature>org.eclipse.jdt.core.javanature</nature>
30+
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
2231
</natures>
2332
</projectDescription>

pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@
123123
<downloadSources>true</downloadSources>
124124
</configuration>
125125
</plugin>
126+
127+
<!-- This doesn't seem to work reliably
126128
<plugin>
127129
<groupId>org.apache.maven.plugins</groupId>
128130
<artifactId>maven-antrun-plugin</artifactId>
@@ -156,6 +158,8 @@
156158
</dependency>
157159
</dependencies>
158160
</plugin>
161+
-->
162+
159163
</plugins>
160164
</build>
161165
<reporting>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/**
2+
* OWASP Enterprise Security API (ESAPI)
3+
*
4+
* This file is part of the Open Web Application Security Project (OWASP)
5+
* Enterprise Security API (ESAPI) project. For details, please see
6+
* <a href="http://www.owasp.org/index.php/ESAPI">http://www.owasp.org/index.php/ESAPI</a>.
7+
*
8+
* Copyright (c) 2007 - The OWASP Foundation
9+
*
10+
* The ESAPI is published by OWASP under the BSD license. You should read and accept the
11+
* LICENSE before you use, modify, and/or redistribute this software.
12+
*
13+
* @author Jeff Williams <a href="http://www.aspectsecurity.com">Aspect Security</a>
14+
* @created 2007
15+
*/
16+
package org.owasp.esapi;
17+
18+
19+
/**
20+
* A parameterized string that can be used to send data to an interpreter.
21+
*
22+
* PreparedString div = new PreparedString( “<a href=”@1” onmouseover=”alert(‘@2’)”>test</a>” );
23+
* div.setURL( 1, request.getParameter( “url” ) );
24+
* div.setJavaScriptString( 2, request.getParameter( “message” ) );
25+
* out.println( div.toString() );
26+
*
27+
* // escaping for SQL
28+
* PreparedString query = new PreparedString( “SELECT * FROM users WHERE name=@1 AND password=@2” );
29+
* query.setSQLString( 1, request.getParameter( “name” ) );
30+
* query.setSQLString( 1, request.getParameter( “pass” ) );
31+
* stmt.execute( query.toString() );
32+
*
33+
* @author Jeff Williams (jeff.williams .at. aspectsecurity.com) <a
34+
* href="http://www.aspectsecurity.com">Aspect Security</a>
35+
* @since June 1, 2007
36+
*/
37+
public class PreparedString {
38+
String template = null;
39+
char parameterCharacter = '@';
40+
41+
public PreparedString( String template ) {
42+
this.template = template;
43+
}
44+
45+
public void setParameterCharacter( char c ) {
46+
parameterCharacter = c;
47+
}
48+
49+
/// FIXME: xxx
50+
51+
}

src/main/java/org/owasp/esapi/codecs/Codec.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,12 @@ public String encode(char[] immune, String input) {
7070
}
7171
return sb.toString();
7272
}
73-
73+
74+
// public abstract String encodeString( String input ) ;
75+
76+
// public abstract String encodeDate( String input ) ;
77+
78+
// public abstract String encodeNumber( String input ) ;
7479

7580
/**
7681
* Default implementation that should be overridden in specific codecs.

0 commit comments

Comments
 (0)