Compare commits

..

No commits in common. "f27631954e5a061c37b41d764f5ae4a85a59cd4f" and "1d5272c29941bfa0491e2847667de8c96083ec95" have entirely different histories.

2 changed files with 6 additions and 10 deletions

View File

@ -4,9 +4,6 @@ ErrorDocument 403 "Access forbidden"
ErrorDocument 404 /cgi/main.py ErrorDocument 404 /cgi/main.py
ErrorDocument 500 "A very nasty bug found his way onto this very server" ErrorDocument 500 "A very nasty bug found his way onto this very server"
# Work around for Safari
Header set X-Content-Type-Options "nosniff"
<Files ~ "\.(py|pyc|db|log)$"> <Files ~ "\.(py|pyc|db|log)$">
deny from all deny from all
</Files> </Files>

View File

@ -224,7 +224,6 @@
</div> </div>
<script> <script>
//<![CDATA[
document.getElementById("url").value = window.location.href document.getElementById("url").value = window.location.href
if (!/:html/.test(window.location.href)) if (!/:html/.test(window.location.href))
@ -237,11 +236,12 @@
for (var select of document.forms[0].elements) for (var select of document.forms[0].elements)
if (select.tagName == 'SELECT') if (select.tagName == 'SELECT')
for (var option of select) for (var option of select)
if (option.value && options.match(option.value)) { if (option.value)
select.value = option.value if (options.match(option.value)) {
options = options.replace(option.value, '') select.value = option.value
break options = options.replace(option.value, '')
} break
}
document.forms[0]['extra_options'].value = options document.forms[0]['extra_options'].value = options
} }
@ -269,7 +269,6 @@
if (target != window.location.pathname) if (target != window.location.pathname)
window.location.href = target window.location.href = target
} }
//]]>
</script> </script>
</body> </body>
</html> </html>