From: fche Date: Wed, 19 Nov 2008 18:29:34 +0000 (+0000) Subject: none X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=51566775ecd6bd022a5f2716900b3f487c71c3ba;p=systemtap-htdocs.git none --- diff --git a/examples/gitweb.php b/examples/gitweb.php index 96c0c5cc..ae02e540 100644 --- a/examples/gitweb.php +++ b/examples/gitweb.php @@ -2,9 +2,9 @@ $uri = $_SERVER["REQUEST_URI"]; $gitfile0 = ereg_replace (".*/examples/", "", $uri); if ($gitfile0 == "") { $gitfile0 = "index.html"; } -if (! preg_match ("/^[/_A-Za-z0-9.]*$/", $gitfile0)) { - die ("bad chars ".htmlspecialchars($gitfile0)); -} +#if (! preg_match ("/^[/_A-Za-z0-9.]*$/", $gitfile0)) { +# die ("bad chars ".htmlspecialchars($gitfile0)); +#} $gitfile1 = "testsuite/systemtap.examples/$gitfile0"; $pathparts = pathinfo($gitfile1); switch ($pathparts['extension']) {