diff options
Diffstat (limited to 'pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli')
-rw-r--r-- | pdf-as-cli/src/test/java/at/gv/egiz/pdfas/cli/test/EncoderTest.java | 18 |
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>"); + + } +} |