summaryrefslogtreecommitdiffstats
path: root/lib/private/Security/TrustedDomainHelper.php
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-01-06 14:19:06 +0100
committerCarl Schwan <carl@carlschwan.eu>2022-01-27 17:20:00 +0100
commitd69531ac8ecabfaa2c915d5266d09971c0129a77 (patch)
tree876d8e19059e7b424cc29ef49167cdf9bf47db69 /lib/private/Security/TrustedDomainHelper.php
parent0c631830bba9ff49e5f281699cf2514ea2e4d54d (diff)
downloadnextcloud-server-d69531ac8ecabfaa2c915d5266d09971c0129a77.tar.gz
nextcloud-server-d69531ac8ecabfaa2c915d5266d09971c0129a77.zip
Fix psalm not running
The issue was that we were using psalm/phar instead of vimeo/psalm. This caused issue with the custom psalm plugin in buildd/psalm. This is using the opportunity to also update the psalm version from 3.8 to 3.17 and the php-cs-fixer too. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'lib/private/Security/TrustedDomainHelper.php')
-rw-r--r--lib/private/Security/TrustedDomainHelper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Security/TrustedDomainHelper.php b/lib/private/Security/TrustedDomainHelper.php
index 175e4cbd356..0688ebba5b3 100644
--- a/lib/private/Security/TrustedDomainHelper.php
+++ b/lib/private/Security/TrustedDomainHelper.php
@@ -98,7 +98,7 @@ class TrustedDomainHelper implements ITrustedDomainHelper {
return true;
}
// Reject misformed domains in any case
- if (strpos($domain,'-') === 0 || strpos($domain,'..') !== false) {
+ if (strpos($domain, '-') === 0 || strpos($domain, '..') !== false) {
return false;
}
// Match, allowing for * wildcards