Skip to content

Commit 18fa2e2

Browse files
author
Till Brehm
committed
Merge branch 'stable-3.0.5' of git.ispconfig.org:ispconfig/ispconfig3 into stable-3.0.5
2 parents 85f6fb3 + c554153 commit 18fa2e2

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

install/tpl/nginx_apps.vhost.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ server {
55

66
root {apps_vhost_dir};
77

8-
client_max_body_size 20M;
8+
client_max_body_size 100M;
99

1010
location / {
1111
index index.php index.html;

interface/web/login/templates/index.htm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,7 @@ <h2><tmpl_var name="login_txt"></h2>
3939
</div>
4040
</div>
4141

42-
</div>
42+
</div>
43+
<script language="JavaScript" type="text/javascript">
44+
$('#username').closest('form').attr('autocomplete','on');
45+
</script>

interface/web/themes/blue/templates/main.tpl.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
jQuery(document).ready(function() {
2323
loadInitContent();
2424

25-
$('form').attr('autocomplete','off');
25+
$('form').not('#dummy_login_form').attr('autocomplete','off');
2626

2727
$("#pageForm").submit(function(e){
2828
//Prevent form submit: e.preventDefault() in lists

interface/web/themes/default/templates/main.tpl.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
jQuery(document).ready(function() {
2323
loadInitContent();
2424

25-
$('form').attr('autocomplete','off');
25+
$('form').not('#dummy_login_form').attr('autocomplete','off');
2626

2727
$("#pageForm").submit(function(e){
2828
//Prevent form submit: e.preventDefault() in lists

server/conf/nginx_apps.vhost.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ server {
55

66
root {apps_vhost_dir};
77

8-
client_max_body_size 20M;
8+
client_max_body_size 100M;
99

1010
location / {
1111
index index.php index.html;

server/mods-available/web_module.inc.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,11 @@ function restartHttpd($action = 'restart') {
217217
} else {
218218
exec($app->system->getinitcommand($daemon, 'reload').' 2>&1', $retval['output'], $retval['retval']);
219219
}
220+
221+
// nginx: do a syntax check because on some distributions, the init script always returns 0 - even if the syntax is not ok (how stupid is that?)
222+
if($web_config['server_type'] == 'nginx' && $retval['retval'] == 0){
223+
exec('nginx -t 2>&1', $retval['output'], $retval['retval']);
224+
}
220225
return $retval;
221226
}
222227

0 commit comments

Comments
 (0)