# HG changeset patch # User Ethan Zonca # Date 2011-01-31 20:03:43 # Node ID c428c707649bc2b0ac48e899c24707256a5ca88e # Parent c39af79363d8ec3854b486ea1c1145e5e3a6875a Added htmlentities() diff --git a/admin.php b/admin.php --- a/admin.php +++ b/admin.php @@ -70,13 +70,13 @@ require_once('inc/admin.inc'); $result = 'Rehash Failed'; else $result = 'Rehash Successful'; - $hashresult = nl2br(ob_get_contents()); + $hashresult = htmlentities(ob_get_contents()); ob_end_clean(); if ($crawl_schools !== NULL) $result .= ': ' . implode(', ', $crawl_schools); // Prepend rehash output - $result = $hashresult . '
' . $result; + $result = nl2br($hashresult) . '
' . $result; } else if(isset($_GET['purge'])) {