Changelog: https://haproxy-wi.org/changelog.py#5_2_1
pull/304/head v5.2.1
Pavel Loginov 3 years ago
parent c1c5d13131
commit a4407a1362

@ -242,8 +242,7 @@ def page_for_admin(**kwargs):
give_level = 1
if not is_admin(level=give_level):
print('<center><h3 style="color: red">How did you get here?! O_o You do not have need permissions</h>')
print('<meta http-equiv="refresh" content="5; url=/">')
print('<meta http-equiv="refresh" content="0; url=/">')
import sys
sys.exit()
@ -420,7 +419,7 @@ def get_section_from_config(config, section):
return_config = ""
with open(config, 'r') as f:
for index, line in enumerate(f):
if line.startswith(section):
if line.startswith(section + '\n'):
start_line = index
return_config += line
record = True

@ -282,7 +282,7 @@
</div>
{% if configver %}
<br>
<div style="text-align: center;">
<center>
{% if role <= 3 %}
{% if not is_serv_protected or role <= 2 %}
<form action="versions.py?service={{service}}" method="post">
@ -298,5 +298,5 @@
{% endif %}
{% endif %}
<div class="alert alert-info"><b>Note:</b> If you reconfigure Master server, Slave will reconfigured automatically</div>
</div>
</center>
{% endif %}
Loading…
Cancel
Save