File:  [mozdev] / autoslide / www / download.php
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Thu Aug 19 23:57:51 2010 UTC (7 years, 3 months ago) by joachim.herb
Branches: MAIN
CVS tags: V_0_0_5, V_0_0_11, HEAD
First version of AutoSlide: 0.0.1

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

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