Skip to content
Snippets Groups Projects
Commit 7e9fd924 authored by rswindell's avatar rswindell
Browse files

Fix bug in chk_qwk_id() found and reported by Nightfox: Only permutations

(e.g. without spaces) of the user's originally submitted alias would be
allowed as a QWK-ID.
parent 633e754a
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,11 @@ function chk_qwk_id(str)
if(str.indexOf('&')>=0)
return(false);
if(system.matchuser(str,true)!=user.number || system.trashcan(str))
var userfound=system.matchuser(str,true);
if(userfound && userfound!=user.number)
return(false);
if(system.trashcan(str))
return(false);
return(true);
......
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