We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfb7370 commit 41d2af3Copy full SHA for 41d2af3
src/SubCommands/BlockAccessToSensitiveFiles.php
@@ -16,7 +16,7 @@ public function getTemplateVars() {
16
$files_array = [];
17
18
foreach ( $files as $key => $value ) {
19
- $file = $this->commandArguments['server'] === 'apache' ? $value : preg_quote( $value );
+ $file = isset( $this->commandArguments['server'] ) && $this->commandArguments['server'] === 'nginx' ? preg_quote( $value ) : $value;
20
$files_array[] = [ 'file' => $file ];
21
}
22
0 commit comments