Skip to content

Commit c8301fd

Browse files
feat(mueller): catch www. as URL in about/comment
1 parent 3e04bf7 commit c8301fd

File tree

1 file changed

+2
-1
lines changed
  • php-config/Emergence/Mueller/Investigator.config.d

1 file changed

+2
-1
lines changed

php-config/Emergence/Mueller/Investigator.config.d/laddr.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Investigator::$tests['has-about-url'] = [
1313
'points' => -100,
1414
'function' => function (IUser $User, array &$userCache) {
15-
return $User->About && (stripos($User->About, 'http://') !== false || stripos($User->About, 'https://') !== false);
15+
return $User->About && (stripos($User->About, 'http://') !== false || stripos($User->About, 'https://') !== false || stripos($User->About, 'www.') !== false);
1616
}
1717
];
1818

@@ -33,6 +33,7 @@
3333
if (
3434
stripos($Comment['Message'], 'http://') !== false
3535
|| stripos($Comment['Message'], 'https://') !== false
36+
|| stripos($Comment['Message'], 'www.') !== false
3637
) {
3738
return true;
3839
}

0 commit comments

Comments
 (0)