diff --git a/func/main.sh b/func/main.sh index 280267c4..f9d1a329 100755 --- a/func/main.sh +++ b/func/main.sh @@ -556,7 +556,7 @@ validate_format_email() { # Username validate_format_username() { - if ! [[ "$1" =~ ^[0-Z]+(\.[0-Z]+)?$ ]] || [[ "${#1}" -gt 28 ]]; then + if ! [[ "$1" =~ ^[0-z]+(\.[0-z]+)?$ ]] || [[ "${#1}" -gt 28 ]]; then echo "Error: $2 $1 is not valid" log_event "$E_INVALID" "$EVENT" exit $E_INVALID diff --git a/web/inc/main.php b/web/inc/main.php index be27f456..5df9e1bd 100644 --- a/web/inc/main.php +++ b/web/inc/main.php @@ -30,6 +30,7 @@ function top_panel($user, $TAB) { exec ($command, $output, $return_var); if ( $return_var > 0 ) { header("Location: /error/"); + exit; } $panel = json_decode(implode('', $output), true); unset($output);