Add a few more validity checks

This commit is contained in:
whatever127
2019-09-14 17:26:57 +02:00
parent 39353cdb51
commit d628c2fe69
5 changed files with 21 additions and 2 deletions

View File

@ -113,3 +113,10 @@ function uupDumpApiGetDebug() {
$data = parse_ini_file('debug.ini');
return $data;
}
function uupApiCheckUpdateId($updateId) {
return preg_match(
'/^[\da-fA-F]{8}-([\da-fA-F]{4}-){3}[\da-fA-F]{12}(_rev\.\d+)?$/',
$updateId
);
}