aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-cli/src/test/java
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-02-15 13:59:56 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-02-15 13:59:56 +0100
commit7b57bf7cf435464b687c7dab418da6acbb5230fb (patch)
treee7c14975bd27a7aca493288b5d35ec95e2e4e9e8 /pdf-as-cli/src/test/java
parenta4adf4cfe2223c8149ceafb603a3c4c01b0fd44f (diff)
downloadpdf-as-4-7b57bf7cf435464b687c7dab418da6acbb5230fb.tar.gz
pdf-as-4-7b57bf7cf435464b687c7dab418da6acbb5230fb.tar.bz2
pdf-as-4-7b57bf7cf435464b687c7dab418da6acbb5230fb.zip
urlencoder test clss
Diffstat (limited to 'pdf-as-cli/src/test/java')
-rw-r--r--pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/EncoderTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/EncoderTest.java b/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/EncoderTest.java
new file mode 100644
index 00000000..b53f6f92
--- /dev/null
+++ b/pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/EncoderTest.java
@@ -0,0 +1,18 @@
+package at.gv.egiz.pdfas.cli.test;
+
+import java.net.URL;
+import java.net.URLEncoder;
+
+public class EncoderTest {
+
+ public static void main(String[] args) throws Exception {
+
+ System.out.println("URLEncoder");
+ System.out.println(URLEncoder.encode("http://teasasd.host.asd/asdasd/asda/asd?asdqwqe=asdwqe812331&adijoij=123123", "UTF-8"));
+ System.out.println(URLEncoder.encode("_topXXXX\"><script>alert()</script>", "UTF-8"));
+
+
+ URL url = new URL("_topXXXX\"><script>alert()</script>");
+
+ }
+}