[tag_edit] only add https:// if there is no protocol, see #1015
This commit is contained in:
parent
50e0d74ee8
commit
d8a7ccd894
1 changed files with 2 additions and 2 deletions
|
@ -109,8 +109,8 @@ class TagEditTheme extends Themelet
|
||||||
protected function format_source(string $source = null): HTMLElement
|
protected function format_source(string $source = null): HTMLElement
|
||||||
{
|
{
|
||||||
if (!empty($source)) {
|
if (!empty($source)) {
|
||||||
if (!str_starts_with($source, "http://") && !str_starts_with($source, "https://")) {
|
if (!str_contains($source, "://")) {
|
||||||
$source = "http://" . $source;
|
$source = "https://" . $source;
|
||||||
}
|
}
|
||||||
$proto_domain = explode("://", $source);
|
$proto_domain = explode("://", $source);
|
||||||
$h_source = $proto_domain[1];
|
$h_source = $proto_domain[1];
|
||||||
|
|
Reference in a new issue