/classes/siteguard-waf-exclude-rule.php <- fixed
if ( isset( $rule[‘sig’] ) ) {
$htaccess_str .= “<IfModule mod_siteguard.c>\n”;
}
foreach ( $rules as $rule ) {
if ( isset( $rule[‘filename’] ) && isset( $rule[‘sig’] ) ) {
$filename = $rule[‘filename’];
$sig = $rule[‘sig’];
if ( ! empty( $filename ) ) {
$htaccess_str .= ” <Files $filename >\n”;
$htaccess_str .= $this->output_exclude_sig_1( $sig );
$htaccess_str .= ” </Files>\n”;
} else {
$htaccess_str .= $this->output_exclude_sig_1( $sig );
}
}
}
if ( isset( $rule[‘sig’] ) ) {
$htaccess_str .= “</IfModule>\n”;
}
そもそも、シグネッチャがない場合、<IfModule mod_siteguard.c> を吐き出す必要があるのか?。