blob: e460220347ba24993de98ad6f30818a4a1bdddee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<?php
function pathencode($path) {
return str_replace(',', '%2c', urlencode($path));
}
$val = "X-Sendfile2: " . pathencode(getcwd() . "/index.txt") . " " . $_GET["range"];
if (isset($_GET["range2"])) $val .= ", " . pathencode(getcwd() . "/index.txt") . " " . $_GET["range2"];
header($val);
?>
|