Index: trunk/extensions/ImageMap/ImageMap_body.php |
— | — | @@ -133,7 +133,7 @@ |
134 | 134 | if (is_null($title)) |
135 | 135 | return self::error('imagemap_invalid_title', $lineNum); |
136 | 136 | $alt = $title->getFullText(); |
137 | | - } elseif ( in_array( substr( $link , 1 , strpos($link, '//' )+1 ) , $wgUrlProtocols ) || in_array( substr( $link , 1 , strpos($link, ':' ) ) , $wgUrlProtocols ) ) { |
| 137 | + } elseif ( in_array( substr( $link , 1 , strpos($link, '//' )+1 ) , $wgUrlProtocols ) || in_array( substr( $link , 1 , strpos($link, ':' ) ) , $wgUrlProtocols ) && $wgAllowExternalImages ) { |
138 | 138 | if ( preg_match( '/^ \[ ([^\s]*+) \s ([^\]]*+) \] \w* $ /x', $link, $m ) ) { |
139 | 139 | $title = $m[1]; |
140 | 140 | $alt = trim( $m[2] ); |