tbrehm
2010-10-26 e719809b48b482442b22f757f08d9c9f5213f653
Changed: FS#1357 - PHP open_basedir field has to be longer
Removed: documentroot_www field which has never been used.
2 files modified
1 files added
13 ■■■■ changed files
install/sql/incremental/upd_0004.sql 4 ●●●● patch | view | raw | blame | history
install/sql/ispconfig3.sql 7 ●●●●● patch | view | raw | blame | history
server/plugins-available/apache2_plugin.inc.php 2 ●●●●● patch | view | raw | blame | history
install/sql/incremental/upd_0004.sql
New file
@@ -0,0 +1,4 @@
ALTER TABLE  `web_domain` CHANGE  `apache_directives`  `apache_directives` MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL;
ALTER TABLE  `web_domain` CHANGE  `php_open_basedir`  `php_open_basedir` MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL;
ALTER TABLE  `web_domain` CHANGE  `custom_php_ini`  `custom_php_ini` MEDIUMTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL;
ALTER TABLE  `web_domain` DROP  `document_root_www`;
install/sql/ispconfig3.sql
@@ -1102,7 +1102,6 @@
  `parent_domain_id` int(11) unsigned NOT NULL default '0',
  `vhost_type` varchar(32) default NULL,
  `document_root` varchar(255) default NULL,
  `document_root_www` varchar(255) default NULL,
  `system_user` varchar(255) default NULL,
  `system_group` varchar(255) default NULL,
  `hd_quota` bigint(20) NOT NULL default '0',
@@ -1131,9 +1130,9 @@
  `stats_password` varchar(255) default NULL,
  `stats_type` varchar(255) default 'webalizer',
  `allow_override` varchar(255) NOT NULL default 'All',
  `apache_directives` text,
  `php_open_basedir` text,
  `custom_php_ini` text,
  `apache_directives` mediumtext,
  `php_open_basedir` mediumtext,
  `custom_php_ini` mediumtext,
  `backup_interval` VARCHAR( 255 ) NOT NULL DEFAULT 'none',
  `backup_copies` INT NOT NULL DEFAULT '1',
  `active` enum('n','y') NOT NULL default 'y',
server/plugins-available/apache2_plugin.inc.php
@@ -1255,8 +1255,6 @@
                        */
                        $fn = substr($file, 0, strlen($file) - strlen('.htdigest'));
                        $output .= "\n";
                        //$output .= "      Alias /" . $fn . " " . $webdavRoot . "/" . $fn . "\n";
                        //$output .= "      <Location /" . $fn . ">\n";
                        $output .= "      Alias /webdav/" . $fn . ' ' . $webdavRoot . '/' . $fn . "\n";
                        $output .= "      <Location /webdav/" . $fn . ">\n";
                        $output .= "        DAV On\n";