From 08cc7f673c377bf88897743e340097e93f1e95f4 Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Wed, 16 Jan 2013 09:30:05 -0500 Subject: [PATCH] - Changed regex for redirect path (Web sites, subdomains, vhost subdomains, alias domains) and web folder (vhost subdomains) so that ".." is not allowed (in order to prevent path traversals). - nginx: don't allow folders for proxy redirects (subdomains and alias domains); URL is required. - nginx: modified rewriting. --- install/sql/incremental/upd_0034.sql | 35 +++-------------------------------- 1 files changed, 3 insertions(+), 32 deletions(-) diff --git a/install/sql/incremental/upd_0034.sql b/install/sql/incremental/upd_0034.sql index a426d8e..8ae098c 100644 --- a/install/sql/incremental/upd_0034.sql +++ b/install/sql/incremental/upd_0034.sql @@ -1,4 +1,4 @@ --- -------------------------------------------------------- +-- -------------------------------------------------------- -- -- Table structure for table `aps_instances` @@ -54,7 +54,7 @@ -- -------------------------------------------------------- -- --- Tabellenstruktur für Tabelle `aps_settings` +-- Table structure for table `aps_settings` -- CREATE TABLE IF NOT EXISTS `aps_settings` ( @@ -68,32 +68,6 @@ -- -------------------------------------------------------- -- --- Tabellenstruktur für Tabelle `tpl_default` --- - --- CREATE TABLE IF NOT EXISTS `tpl_default` ( --- `var_id` int(11) unsigned NOT NULL AUTO_INCREMENT, --- `username` varchar(64) NOT NULL, --- `logo_url` varchar(255) NOT NULL, --- PRIMARY KEY (`var_id`) ---) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; - --- -------------------------------------------------------- - --- --- Tabellenstruktur für Tabelle `tpl_default-v2` --- - ---CREATE TABLE IF NOT EXISTS `tpl_default-v2` ( --- `var_id` int(11) unsigned NOT NULL AUTO_INCREMENT, --- `username` varchar(64) NOT NULL, --- `logo_url` varchar(255) NOT NULL, --- PRIMARY KEY (`var_id`) ---) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; - --- -------------------------------------------------------- - --- -- Dumping data for table `aps_settings` -- @@ -102,7 +76,4 @@ INSERT INTO `aps_settings` (`id`, `name`, `value`) VALUES(3, 'ignore-webserver-module', ''); ALTER TABLE `client` ADD `limit_aps` int(11) NOT NULL DEFAULT '0' AFTER `limit_webdav_user`; -ALTER TABLE `client_template` ADD `limit_aps` int(11) NOT NULL DEFAULT '0' AFTER `limit_webdav_user`; - --- INSERT INTO `tpl_default` (`var_id`, `username`, `logo_url`) VALUES('', 'global', 'themes/default/images/header_logo.png'); --- INSERT INTO `tpl_default-2` (`var_id`, `username`, `logo_url`) VALUES('', 'global', 'themes/default-v2/images/header_logo.png'); \ No newline at end of file +ALTER TABLE `client_template` ADD `limit_aps` int(11) NOT NULL DEFAULT '0' AFTER `limit_webdav_user`; \ No newline at end of file -- Gitblit v1.9.1