Skip to content

Commit bd1bce1

Browse files
committed
Fixed bug in agentzero::parseDefault() where the version number was not checked correctly.
1 parent 8c2c69a commit bd1bce1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/agentzero.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ protected static function parseDefault(\stdClass $obj, array $tokens) : void {
249249
$name = [];
250250
foreach (\explode(' ', $token) AS $item) {
251251
$ver = \ltrim($item, 'v'); // strip 'v' off the front of version number
252-
if (\strpbrk($ver, '0123456789.') === $ver) {
252+
if (\strspn($ver, '0123456789.') === \strlen($ver)) {
253253
$app = \implode(' ', $name);
254254
$obj->app = crawlers::normaliseAppname($app);
255255
$obj->appname = $app;

0 commit comments

Comments
 (0)