Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
f1ffe1b5
Commit
f1ffe1b5
authored
Jun 07, 2018
by
Thomas Löffler
Browse files
Change the regex for validating version number on upload
parent
9dbcb503
Pipeline
#4546
passed with stages
in 22 minutes and 22 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
html/typo3conf/ext/ter/class.tx_ter_api.php
View file @
f1ffe1b5
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment