summaryrefslogtreecommitdiff
path: root/files/common/sbin/urldecode
diff options
context:
space:
mode:
authorKatze Miau <miaukatzemiau@priveasy.de>2011-12-20 16:19:31 (GMT)
committerKatze Miau <miaukatzemiau@priveasy.de>2011-12-20 16:19:31 (GMT)
commit0146907d8a0ea470f2dd88ea2d97851f0bc158be (patch)
tree8e663c77ab473ea7c59890b22594792a5713e565 /files/common/sbin/urldecode
parentca217250813ef6f58007e6bde74a57417ce6713f (diff)
change url encoding to avoid % character
- Replace the URL encding escape character % with _. This allows passing the encoded value forth and back between our (buggy) server and (buggy) clients without escaping the escape character. - add /sbin/urldecode to reverse the encoding
Diffstat (limited to 'files/common/sbin/urldecode')
-rwxr-xr-xfiles/common/sbin/urldecode10
1 files changed, 10 insertions, 0 deletions
diff --git a/files/common/sbin/urldecode b/files/common/sbin/urldecode
new file mode 100755
index 0000000..af184a5
--- /dev/null
+++ b/files/common/sbin/urldecode
@@ -0,0 +1,10 @@
+#!/bin/sed -f
+s/_27/'/g
+s/_22/"/g
+s#_2F#/#g
+s/_3E/>/g
+s/_3C/</g
+s/_3F/?/g
+s/_26/\&/g
+s/_20/ /g
+s/_5F/_/g
contact: Jan Huwald // Impressum