Simplify regular expression for UUID

This commit is contained in:
Sei Lisa 2017-09-02 13:46:30 +02:00
parent debd083735
commit a1b4e36cf4

View file

@ -212,7 +212,7 @@ function parse_llHTTPRequest_headers(){
}
function isValidGuid($guid){
return !empty($guid) && preg_match('/^\{?[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12}\}?$/', $guid);
return !empty($guid) && preg_match('/^\{?[a-zA-Z0-9]{8}(?:-[a-zA-Z0-9]{4}){4}[a-zA-Z0-9]{8}\}?$/', $guid);
}
function email_death($error){