Permalink
Browse files

Add new check for <image>

  • Loading branch information...
Jarry1250 committed Jul 29, 2014
1 parent ce7e639 commit 5d72f8cc96fa783c341d501604ec65c0157b1b29
Showing with 4 additions and 1 deletion.
  1. +4 −1 common.php
View
@@ -22,6 +22,9 @@ function isproblematic( $line ) {
if( strpos( $line, "http://" ) !== false && !preg_match( '/(([a-z]+)(:[a-z]+)?="|[<]![^>]*)http:/i', $line ) ){
$errors[] = "*Warning* http:// external reference found.\n\t These may be innocuous document declarations (particularly early on, and no problem)\n\t but if they form file references, they will not work (and may be blocked) by the Wikimedia software.\n\t All required elements need to be included in the SVG directly.";
}
if( strpos( $line, "<image" ) !== false ){
$errors[] = "*ERROR* image tag found.\n\t Since image tags refer to external references, they will not work (and may be blocked) by the Wikimedia software.\n\t All required elements need to be included in the SVG directly.";
}
if( strpos( $line, "C:\\" ) !== false ){
$errors[] = "*ERROR* Local file reference found.\n\t These will not work (and may be blocked) by the Wikimedia software.\n\t All required elements need to be included in the SVG directly.";
}
@@ -52,4 +55,4 @@ function isproblematic( $line ) {
return false;
}
?>
?>

0 comments on commit 5d72f8c

Please sign in to comment.