PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.3.0
Defender Security – Malware Scanner, Login Security & Firewall v6.3.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
← All changes | src/component/security-tweaks/servers/class-apache.php +5 -5 6.2.2 → 6.3.0 View file →
@@ -84,9 +84,9 @@
84 84 public function get_error_by_file_path( $file_path ) {
85 85 return new WP_Error(
86 86 'defender_file_not_writable',
87 87 sprintf(
88 - /* translators: %s - file path */
88 + /* translators: %s: file path */
89 89 esc_html__( 'The file %s is not writable', 'defender-security' ),
90 90 $file_path
91 91 )
92 92 );
@@ -260,9 +260,9 @@
260 260 */
261 261 public function get_rules() {
262 262 $rules = array(
263 263 PHP_EOL . '## WP Defender - Prevent information disclosure ##' . PHP_EOL,
264 - '<FilesMatch "\.(md|exe|sh|bak|inc|pot|po|mo|log|sql)$">' . PHP_EOL .
264 + '<FilesMatch "(?i)\.(md|exe|sh|bak|inc|pot|po|mo|log|sql)$">' . PHP_EOL .
265 265 'Require all denied' . PHP_EOL .
266 266 '</FilesMatch>' . PHP_EOL,
267 267 '<Files robots.txt>' . PHP_EOL .
268 268 'Require all granted' . PHP_EOL .
@@ -275,9 +275,9 @@
275 275
276 276 if ( version_compare( $this->get_version(), '2.4', '<' ) ) {
277 277 $rules = array(
278 278 PHP_EOL . '## WP Defender - Prevent information disclosure ##' . PHP_EOL,
279 - '<FilesMatch "\.(md|exe|sh|bak|inc|pot|po|mo|log|sql)$">' . PHP_EOL .
279 + '<FilesMatch "(?i)\.(md|exe|sh|bak|inc|pot|po|mo|log|sql)$">' . PHP_EOL .
280 280 'Order allow,deny' . PHP_EOL .
281 281 'Deny from all' . PHP_EOL .
282 282 '</FilesMatch>' . PHP_EOL,
283 283 '<Files robots.txt>' . PHP_EOL .
@@ -348,9 +348,9 @@
348 348
349 349 if ( 'protect-information' === $this->type ) {
350 350 $rules = '## WP Defender - Prevent information disclosure ##' . PHP_EOL;
351 351 $rules .= PHP_EOL;
352 - $rules .= '<FilesMatch "\.(md|exe|sh|bak|inc|pot|po|mo|log|sql)$">' . PHP_EOL;
352 + $rules .= '<FilesMatch "(?i)\.(md|exe|sh|bak|inc|pot|po|mo|log|sql)$">' . PHP_EOL;
353 353 $rules .= 'Require all denied' . PHP_EOL;
354 354 $rules .= '</FilesMatch>' . PHP_EOL;
355 355 $rules .= PHP_EOL;
356 356 $rules .= '<Files robots.txt>' . PHP_EOL;
@@ -365,9 +365,9 @@
365 365
366 366 if ( version_compare( $this->get_version(), '2.4', '<' ) ) {
367 367 $rules = '## WP Defender - Prevent information disclosure ##' . PHP_EOL;
368 368 $rules .= PHP_EOL;
369 - $rules .= '<FilesMatch "\.(md|exe|sh|bak|inc|pot|po|mo|log|sql)$">' . PHP_EOL;
369 + $rules .= '<FilesMatch "(?i)\.(md|exe|sh|bak|inc|pot|po|mo|log|sql)$">' . PHP_EOL;
370 370 $rules .= 'Order allow,deny' . PHP_EOL;
371 371 $rules .= 'Deny from all' . PHP_EOL;
372 372 $rules .= '</FilesMatch>' . PHP_EOL;
373 373 $rules .= PHP_EOL;