summaryrefslogtreecommitdiff
path: root/urldecode.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-06-21 21:44:46 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-06-21 21:44:46 -0400
commit896161c483ceef3ed16e2f19a5c05106bed04512 (patch)
tree8e79f92d7b3dfe09fa97f4ae5feb8331ad6fbb52 /urldecode.sh
I can't believe I didn't have this in git before.
Diffstat (limited to 'urldecode.sh')
-rw-r--r--urldecode.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/urldecode.sh b/urldecode.sh
new file mode 100644
index 0000000..1666621
--- /dev/null
+++ b/urldecode.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env php
+<?php
+
+$contents = file_get_contents('php://stdin');
+echo urldecode($contents);