diff options
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/gitweb.php | 2 |
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); |
| 4 | if ($gitfile0 == "") { $gitfile0 = "index.html"; } | 4 | if ($gitfile0 == "") { $gitfile0 = "index.html"; } |
| 5 | if (! preg_match ("/^[A-Za-z0-9_./-]*$/", $gitfile0)) { | 5 | if (! 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"; |
