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

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