]> sourceware.org Git - systemtap-htdocs.git/commitdiff
none
authorfche <fche>
Wed, 19 Nov 2008 18:38:56 +0000 (18:38 +0000)
committerfche <fche>
Wed, 19 Nov 2008 18:38:56 +0000 (18:38 +0000)
examples/gitweb.php

index 46fb48e8077f836f887e7c00e8e9ca895d60c765..fc2499adacfadd3b6d0829dd03e4603e2046d0c0 100644 (file)
@@ -2,7 +2,7 @@
 $uri = $_SERVER["REQUEST_URI"];
 $gitfile0 = ereg_replace (".*/examples/", "", $uri);
 if ($gitfile0 == "") { $gitfile0 = "index.html"; }
-if (escapeshellarg($gitfile0) != "'".$gitfile0."'") {
+if (escapeshellcmd($gitfile0) != $gitfile0) {
   die ("bad chars? ".htmlspecialchars($gitfile0)); 
 }
 $gitfile1 = "testsuite/systemtap.examples/$gitfile0";
This page took 0.025132 seconds and 5 git commands to generate.