summaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2018-09-13 09:31:41 +0200
committerGitHub <noreply@github.com>2018-09-13 09:31:41 +0200
commit480783a63061d3d0ea4e00295885422888df2a5c (patch)
treee0fa4fdf2494e4849b81a0d8356925be3e6c3eb8 /apps/theming
parenta1c969a17056f14fd165642f6c19cad160e32212 (diff)
parent8f9fa9ee13bcbf134901d35ce94945386d5f4647 (diff)
downloadnextcloud-server-480783a63061d3d0ea4e00295885422888df2a5c.tar.gz
nextcloud-server-480783a63061d3d0ea4e00295885422888df2a5c.zip
Merge pull request #11042 from nextcloud/bugfix/10894/php73-filter_var-deprecation
Remove filter_var flags due to PHP 7.3 deprecation, fixes #10894
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/lib/ThemingDefaults.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php
index fe1b1d4c17f..1df7a9f17bb 100644
--- a/apps/theming/lib/ThemingDefaults.php
+++ b/apps/theming/lib/ThemingDefaults.php
@@ -174,9 +174,7 @@ class ThemingDefaults extends \OC_Defaults {
$legalLinks = ''; $divider = '';
foreach($links as $link) {
if($link['url'] !== ''
- && filter_var($link['url'], FILTER_VALIDATE_URL, [
- 'flags' => FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED
- ])
+ && filter_var($link['url'], FILTER_VALIDATE_URL)
) {
$legalLinks .= $divider . '<a href="' . $link['url'] . '" class="legal" target="_blank"' .
' rel="noreferrer noopener">' . $link['text'] . '</a>';
@@ -339,7 +337,7 @@ class ThemingDefaults extends \OC_Defaults {
}
return false;
}
-
+
/**
* Increases the cache buster key
*/