diff options
| author | Thomas Hackl <hackl@data-quest.de> | 2025-08-05 14:08:17 +0200 |
|---|---|---|
| committer | Thomas Hackl <hackl@data-quest.de> | 2025-08-05 14:08:17 +0200 |
| commit | 5b794550b4fa0bc892d924088466bf0065ecf2d7 (patch) | |
| tree | b8817c0ab0dceab5331f00aab023936fa1d482aa /lib/visual.inc.php | |
| parent | 66d91e7b81f978ae4d3b9254334427938599dee6 (diff) | |
Resolve BIEST 5764
Closes #5764
Merge request studip/studip!4404
Diffstat (limited to 'lib/visual.inc.php')
| -rw-r--r-- | lib/visual.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/visual.inc.php b/lib/visual.inc.php index b400ca9..67c8c31 100644 --- a/lib/visual.inc.php +++ b/lib/visual.inc.php @@ -272,6 +272,10 @@ function isURL($url) { } function isLinkIntern($url) { + if (mb_substr($url, 0, 2) === '//') { + $url = Request::protocol() . ':' . $url; + } + $pum = @parse_url(TransformInternalLinks($url)); if (!$pum) { |
