fixes to surpress errors and avoid IP bans

This commit is contained in:
2015-12-07 15:32:25 +01:00
parent 6d342f3941
commit 4adfdb3339
2 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ require valid-user
Allow from all
</FilesMatch>
<FilesMatch "\.(css|js|php|html)$">
<FilesMatch "\.(css|js|php|html|htm|var)$">
Order Allow,Deny
Allow from all
</FilesMatch>

View File

@@ -17,8 +17,8 @@
<?php
// Reads variables of HTML form in index.php
$ACTION = $_POST['action'];
$USER = $_POST['user'];
$PASS = $_POST['pass'];
$USER = isset($_POST['user']) ? $_POST['user'] : ''; // surpress empty variable errors
$PASS = isset($_POST['pass']) ? $_POST['pass'] : '';
$SURE = $_POST['sure'];
// Sanitize variables