diff --git a/module/doc/model.php b/module/doc/model.php index b7890c1816..833de11ba0 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -2672,6 +2672,7 @@ EOT; $autoloadPage = true; if(!empty($doc) and $doc->type == 'url') { + if(!preg_match('/^https?:\/\//', $doc->content)) $doc->content = 'http://' . $doc->content; $parsedUrl = parse_url($doc->content); $urlPort = isset($parsedUrl['port']) ? ':' . $parsedUrl['port'] : ''; $urlDomain = $parsedUrl['host'] . $urlPort; diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php index 9d43318036..f0c8895767 100644 --- a/module/story/view/view.html.php +++ b/module/story/view/view.html.php @@ -305,7 +305,7 @@ ?>