Browse Source

Fixed multiple XSS injection vectors

Nico Oelgart 12 years ago
parent
commit
c927d57eb1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      miner.php

+ 1 - 1
miner.php

@@ -181,7 +181,7 @@ $customsummarypages = array('Mobile' => array($mobilepage, $mobilesum),
  'Stats' => array($statspage, $statssum),
  'Stats' => array($statspage, $statssum),
  'Pools' => array($poolspage, $poolssum, $poolsext));
  'Pools' => array($poolspage, $poolssum, $poolsext));
 #
 #
-$here = $_SERVER['PHP_SELF'];
+$here = basename(__FILE__);
 #
 #
 global $tablebegin, $tableend, $warnfont, $warnoff, $dfmt;
 global $tablebegin, $tableend, $warnfont, $warnoff, $dfmt;
 #
 #