Commit f1ffe1b5 authored by Thomas Löffler's avatar Thomas Löffler

Change the regex for validating version number on upload

parent 9dbcb503
Pipeline #4546 passed with stages
in 22 minutes and 22 seconds
......@@ -157,7 +157,7 @@ class tx_ter_api
}
// check for a valid version number
if (preg_match('/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/', $extensionInfoData->version) == false) {
if (preg_match('/^(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})$/', $extensionInfoData->version) == false) {
throw new \T3o\Ter\Exception\Exception(
'Your version number "' . htmlspecialchars(
$extensionInfoData->version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment