summaryrefslogtreecommitdiffstats
path: root/examples
diff options
authorfche <fche>2008-11-19 18:28:19 +0000
committerfche <fche>2008-11-19 18:28:19 +0000
commitaf633aeb8c46da3b6b90b2f314d7e781cac543ca (patch)
tree22ebf8482e468067cbe14805e45902a0086c9fc3 /examples
parentnone (diff)
none
Diffstat (limited to 'examples')
-rw-r--r--examples/gitweb.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gitweb.php b/examples/gitweb.php
index ca62e848..242947ea 100644
--- a/examples/gitweb.php
+++ b/examples/gitweb.php
@@ -2,7 +2,7 @@
2$uri = $_SERVER["REQUEST_URI"]; 2$uri = $_SERVER["REQUEST_URI"];
3$gitfile0 = ereg_replace (".*/examples/", "", $uri); 3$gitfile0 = ereg_replace (".*/examples/", "", $uri);
4if ($gitfile0 == "") { $gitfile0 = "index.html"; } 4if ($gitfile0 == "") { $gitfile0 = "index.html"; }
5if (! preg_match ("/^[A-Za-z0-9_./-]*$/", $gitfile0)) { 5if (! preg_match ("/^[A-Za-z0-9_\./-]*$/", $gitfile0)) {
6 die ("bad chars ".htmlspecialchars($gitfile0)); 6 die ("bad chars ".htmlspecialchars($gitfile0));
7} 7}
8$gitfile1 = "testsuite/systemtap.examples/$gitfile0"; 8$gitfile1 = "testsuite/systemtap.examples/$gitfile0";