Skip to content

Commit

Permalink
Update http string check
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Nov 25, 2024
1 parent 549f087 commit c12c0c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ function proxy_media($url)
}

// turn relative urls into absolute urls
if (!preg_match('/^https?\:\/\//', $url)) {
if (!is_http($url)) {
// ensure url is relative to the site root
if ($url[0] !== '/') {
$url = "/{$url}";
Expand Down

0 comments on commit c12c0c5

Please sign in to comment.