Skip to content

Commit fe0f39a

Browse files
committed
improved user_validation
1 parent ed47fc3 commit fe0f39a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

func/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ validate_format_email() {
556556

557557
# Username
558558
validate_format_username() {
559-
if ! [[ "$1" =~ ^[0-Z]+(\.[0-Z]+)?$ ]] || [[ "${#1}" -gt 28 ]]; then
559+
if ! [[ "$1" =~ ^[0-z]+(\.[0-z]+)?$ ]] || [[ "${#1}" -gt 28 ]]; then
560560
echo "Error: $2 $1 is not valid"
561561
log_event "$E_INVALID" "$EVENT"
562562
exit $E_INVALID

web/inc/main.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ function top_panel($user, $TAB) {
3030
exec ($command, $output, $return_var);
3131
if ( $return_var > 0 ) {
3232
header("Location: /error/");
33+
exit;
3334
}
3435
$panel = json_decode(implode('', $output), true);
3536
unset($output);

0 commit comments

Comments
 (0)