[Openfirst-cvscommit] downloads getfile.php,1.3,1.4
Brought to you by:
xtimg
From: <i-...@us...> - 2004-01-08 01:19:16
|
Update of /cvsroot/openfirst/downloads In directory sc8-pr-cvs1:/tmp/cvs-serv9269/downloads Modified Files: getfile.php Log Message: Fixed bug with spaces (and other special characters) in filenames. Index: getfile.php =================================================================== RCS file: /cvsroot/openfirst/downloads/getfile.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** getfile.php 23 Dec 2003 23:30:08 -0000 1.3 --- getfile.php 8 Jan 2004 01:19:13 -0000 1.4 *************** *** 44,48 **** if(ereg("location:*",$file->FileData)){ ! header("Location: ".substr($file->FileData,9)); } else{ header("Content-type: ".$file->mime); --- 44,48 ---- if(ereg("location:*",$file->FileData)){ ! header("Location: ".rawurlencode(substr($file->FileData,9))); } else{ header("Content-type: ".$file->mime); *************** *** 51,53 **** } ! ?> \ No newline at end of file --- 51,53 ---- } ! ?> |