Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/src/Form/Filter/UrlFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function filter(\SimpleXMLElement $element, $value, $group = null, Regist
// we assume that it is an external URL and prepend http://
if (
((string) $element['type'] === 'url' && !$protocol && !$element['relative'])
|| (!(string) $element['type'] === 'url' && !$protocol)
|| ((string) $element['type'] !== 'url' && !$protocol)
) {
$protocol = 'http';

Expand Down