--- a/mediawiki/extensions/cmo.php
+++ b/mediawiki/extensions/cmo.php
@@ -39,17 +39,17 @@ function CMOBox( $input, $argv, &$parser
// start the rendering the html output
$output = '<div class="topicbox" '.$style.'><h2>'.$parser->recursiveTagParse((string)$argv['title']).'</h2><table>';
$i = 0;
foreach ($xml->cmocell as $cmocell) {
if ($i==0)
$output .= '<tr>';
- if (strpos((string)$cmocell['url'], 'http://')===false) {
+ if (substr($cmocell['url'],0,7)!='http://' && substr($cmocell['url'],0,8)!='https://') {
$title = Title::newFromText((string)$cmocell['url']);
if ($title)
$url = $title->getLocalURL();
} else {
if ($cmocell['url'])
$url = (string)$cmocell['url'];
}
if ($url) {