From 0146907d8a0ea470f2dd88ea2d97851f0bc158be Mon Sep 17 00:00:00 2001 From: Katze Miau Date: Tue, 20 Dec 2011 16:19:31 +0000 Subject: 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 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//%3E/g -s/"/%22/g -s/'/%27/g +s/_/_5F/g +s/ /_20/g +s/&/_26/g +s/?/_3F/g +s//_3E/g +s#/#_2F#g +s/"/_22/g +s/'/_27/g -- cgit v0.10.1