Browse Source

Add support for https and scheme-agnostic links

mw_28
Adrian Malacoda 2 years ago
parent
commit
fc363e5afb
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      application/forums/Submenu.php

+ 3
- 1
application/forums/Submenu.php View File

@@ -123,7 +123,9 @@ foreach($wdata As $line)
$url = wik2($bits[0]);
$pageTitle = wik2($bits[1]);

if(substr($url,0,7) != "http://")
if(substr($url,0,7) != "http://" &&
substr($url,0,8) != "https://" &&
substr($url,0,2) != "//")
{
$url = WIKI_PATH."$url";
}

Loading…
Cancel
Save