From 958a04dfd19aaf87feb0014f31a97914311ff2c9 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Thu, 25 Feb 2016 03:23:04 -0800 Subject: [PATCH] Added check for comments in XML dats --- wizzardRedux/admin/import.php | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/wizzardRedux/admin/import.php b/wizzardRedux/admin/import.php index aa018ae..f94e666 100644 --- a/wizzardRedux/admin/import.php +++ b/wizzardRedux/admin/import.php @@ -121,7 +121,7 @@ function import_dat($filename, $link) $machinename = ""; $description = ""; $gameid = 0; - $query = ""; + $comment = false; echo "

Roms Added:

@@ -154,8 +154,19 @@ function import_dat($filename, $link) $format = "unknown"; } } + + // If there's an XML-style comment, stop the presses and skip until it's over + elseif (strpos($line, "-->") !== false) + { + $comment = false; + } + elseif (strpos($line, "