From: <jo...@us...> - 2003-11-24 02:18:01
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1:/tmp/cvs-serv13544 Modified Files: init.inc.php Log Message: Fixed grep typo. Should be checking for literal periods instead of any character. ('\.' versus '.' in regexp.) Index: init.inc.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/init.inc.php,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** init.inc.php 24 Nov 2003 01:29:17 -0000 1.46 --- init.inc.php 24 Nov 2003 02:17:58 -0000 1.47 *************** *** 135,139 **** // Sets the download and subscribe paths from the config if present. ! if ($download_uri == '') { $subscribe_path = 'webcal://'.$HTTP_SERVER_VARS['SERVER_NAME'].dirname($HTTP_SERVER_VARS['PHP_SELF']).'/'.$filename; $download_filename = $filename; --- 135,139 ---- // Sets the download and subscribe paths from the config if present. ! if ($download_uri == '' && preg_match('/(^\/|\.\.\/)/', $filename) == 0) { $subscribe_path = 'webcal://'.$HTTP_SERVER_VARS['SERVER_NAME'].dirname($HTTP_SERVER_VARS['PHP_SELF']).'/'.$filename; $download_filename = $filename; |