Skip to content

Commit

Permalink
Add host
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Mar 18, 2022
1 parent eb83fea commit 5535da8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lhc_web/lib/core/lhbbcode/lhbbcode_cleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,10 @@ public static function _make_url_embed_image($matches) {
$prepend = $matches[1];
}

if (strpos($url,'http://') === false && strpos($url,'https://') === false) {
$url = str_replace('//','/',self::getHost() .'/'. $url);
}

return $prepend . ' ' . $url;
}

Expand Down

0 comments on commit 5535da8

Please sign in to comment.