Fixed security issue in cc script
This commit is contained in:
parent
da57136db0
commit
c48c878ae2
@ -39,8 +39,14 @@ $reporter = new Doctrine_Coverage_Report("coverage.txt");
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (isset($_GET["file"])){
|
if (isset($_GET["file"])){
|
||||||
|
if (strpos($_GET["file"], "Doctrine") === false) {
|
||||||
|
echo "trying something fishy?";
|
||||||
|
exit(0);
|
||||||
|
}
|
||||||
echo '<h1>Coverage for ' . $_GET["file"] . '</h1>';
|
echo '<h1>Coverage for ' . $_GET["file"] . '</h1>';
|
||||||
echo '<a href="cc.php">Back to coverage report</a>';
|
echo '<a href="cc.php">Back to coverage report</a>';
|
||||||
|
|
||||||
|
|
||||||
$reporter->showFile($_GET["file"]);
|
$reporter->showFile($_GET["file"]);
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user