Annotation of compactheader/www/download.php, revision 1.1

1.1     ! joachim.    1: <?php
        !             2: $xpi = substr($_SERVER['PATH_INFO'], 1);
        !             3: if(preg_match('/^[a-zA-Z0-9_\-\.]+.xpi$/', $xpi) == 0)
        !             4: {
        !             5:   print "Illegal name: $xpi"; return;
        !             6: }
        !             7: header('Content-type: application/x-xpinstall');
        !             8: header('Content-disposition: attachment; filename=' . $xpi);
        !             9: readfile('http://downloads.mozdev.org/compactheader/' . $xpi);
        !            10: ?>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>