summaryrefslogtreecommitdiffstats
path: root/urldecode
blob: dcea3e209d2f6778278831a9a57050e33c59acf0 (plain)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/php
<?php

if (count($argv) == 0) {
	echo urldecode(file_get_contents("php://stdin"));
} else {
	foreach ($argv as $arg) {
		echo urldecode(file_get_contents($arg));
	}
}