1
0
mirror of synced 2024-12-13 22:56:04 +03:00

Fixed security issue in cc script

This commit is contained in:
meus 2007-09-17 23:11:05 +00:00
parent da57136db0
commit c48c878ae2

View File

@ -39,8 +39,14 @@ $reporter = new Doctrine_Coverage_Report("coverage.txt");
<?php
if (isset($_GET["file"])){
if (strpos($_GET["file"], "Doctrine") === false) {
echo "trying something fishy?";
exit(0);
}
echo '<h1>Coverage for ' . $_GET["file"] . '</h1>';
echo '<a href="cc.php">Back to coverage report</a>';
$reporter->showFile($_GET["file"]);
} else {
?>