Skip to content
Snippets Groups Projects
Commit b05302e9 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Properly check the new uid with TBcheck_dbslot() to make sure that it

valid.
parent 17cb73f9
No related branches found
No related tags found
No related merge requests found
......@@ -89,6 +89,15 @@ if (@ARGV != 2) {
my $olduid = shift(@ARGV);
my $newuid = shift(@ARGV);
#
# Make sure that the new uid is valid!
#
if (! TBcheck_dbslot($newuid, "users", "uid",
TBDB_CHECKDBSLOT_WARN|TBDB_CHECKDBSLOT_ERROR)) {
die("*** $0:\n".
" Invalid characters in new uid: $newuid!\n");
}
#
# This script is always audited. Mail is sent automatically upon exit.
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment