Skip to content
GitLab
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
c00af786
Commit
c00af786
authored
Dec 03, 2021
by
Thomas Löffler
Browse files
[BUGFIX] Make valid version check more restrictive
parent
b1f67bd6
Pipeline
#20463
passed with stages
in 4 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extensions/ter/Classes/Api/ExtensionVersion.php
View file @
c00af786
...
...
@@ -99,7 +99,7 @@ class ExtensionVersion
*/
public
function
isValidVersionNumber
():
bool
{
return
preg_match
(
'/^(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})$/'
,
$this
->
version
)
!
==
false
;
return
preg_match
(
'/^(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})\.(0|[1-9]\d{0,2})$/'
,
$this
->
version
)
=
==
1
;
// alternative (preg_match('/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/', $version) !== false) {
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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