From 73ae91d629c175110c02df6ab5b0aa0c186a4c7d Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Wed, 17 Apr 2013 12:06:53 -0400 Subject: [PATCH] Strip HTML comments sans "BuySellAds" Having an issue getting BSA to validate my site. Attempting to leave those HTML comments in place in an effort to resolve the issue. --- classes/Display/PHP.php | 2 +- jar.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Display/PHP.php b/classes/Display/PHP.php index 8592313..d457753 100644 --- a/classes/Display/PHP.php +++ b/classes/Display/PHP.php @@ -104,7 +104,7 @@ class Display_PHP extends Display_Common $buffer = ob_get_clean(); // Kills any whitespace and HTML comments - $buffer = preg_replace(array('/^[\s]+/m', '//U'), '', $buffer); + $buffer = preg_replace(array('/^[\s]+/m', '//U'), '', $buffer); // Note, this doesn't exit in case you want to run code after the display of the page echo $buffer; diff --git a/jar.php b/jar.php index 2353125..4851afa 100755 --- a/jar.php +++ b/jar.php @@ -2834,7 +2834,7 @@ class Display_PHP extends Display_Common $buffer = ob_get_clean(); // Kills any whitespace and HTML comments - $buffer = preg_replace(array('/^[\s]+/m', '//U'), '', $buffer); + $buffer = preg_replace(array('/^[\s]+/m', '//U'), '', $buffer); // Note, this doesn't exit in case you want to run code after the display of the page echo $buffer;