X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FGitInfo.php;h=f170a025f7e0ef7447ebedfd9e0dce6532930800;hb=b3e2c773246702ed65e4c447cd1cb12b138c44dc;hp=8095fd7308761ff182624386236d9d79927120a1;hpb=641c6d1f15f866770d44b67c1efc5f9fc0763d9e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GitInfo.php b/includes/GitInfo.php index 8095fd7308..f170a025f7 100644 --- a/includes/GitInfo.php +++ b/includes/GitInfo.php @@ -232,6 +232,8 @@ class GitInfo { ]; $result = Shell::command( $cmd ) ->environment( [ 'GIT_DIR' => $this->basedir ] ) + ->restrict( Shell::RESTRICT_DEFAULT | Shell::NO_NETWORK ) + ->whitelistPaths( [ $this->basedir ] ) ->execute(); if ( $result->getExitCode() === 0 ) {