[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: infolog/inc class.vfs.inc.php,1.3.2.1,1.3.2.2
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: infolog/inc class.vfs.inc.php,1.3.2.1,1.3.2.2 |
Date: |
Wed, 02 Jul 2003 20:21:26 -0400 |
Update of /cvsroot/phpgroupware/infolog/inc
In directory subversions:/tmp/cvs-serv5489
Modified Files:
Tag: Version-0_9_14-branch
class.vfs.inc.php
Log Message:
test against files-dir within the document-root of the webserver
(this would allow uploads of scripts via vfs, and then execute them via the
webserver)
Index: class.vfs.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/infolog/inc/class.vfs.inc.php,v
retrieving revision 1.3.2.1
retrieving revision 1.3.2.2
diff -C2 -r1.3.2.1 -r1.3.2.2
*** class.vfs.inc.php 8 Apr 2002 14:23:15 -0000 1.3.2.1
--- class.vfs.inc.php 3 Jul 2003 00:21:24 -0000 1.3.2.2
***************
*** 100,103 ****
--- 100,116 ----
{
$this->basedir =
$GLOBALS['phpgw_info']['server']['files_dir'];
+
+ // test if the files-dir is inside the document-root,
and refuse working if so
+ //
+ if (strstr($this->basedir,PHPGW_SERVER_ROOT) ||
strstr($this->basedir,$GLOBALS['HTTP_SERVER_VARS']['DOCUMENT_ROOT']))
+ {
+ $GLOBALS['phpgw']->common->phpgw_header();
+ if
($GLOBALS['phpgw_info']['flags']['noheader'])
+ {
+ echo parse_navbar();
+ }
+ echo '<p align="center"><font
color="red"><b>'.lang('Path to user and group files HAS TO BE OUTSIDE of the
webservers document-root!!!')."</b></font></p>\n";
+ $GLOBALS['phpgw']->common->phpgw_exit();
+ }
$this->fakebase = "/home";
$this->working_id =
$GLOBALS['phpgw_info']['user']['account_id'];
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: infolog/inc class.vfs.inc.php,1.3.2.1,1.3.2.2,
Ralf Becker <address@hidden> <=