mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Fix security warnings
This commit is contained in:
parent
2c59a006f5
commit
53d5c35a81
2 changed files with 3 additions and 2 deletions
|
@ -80,7 +80,7 @@ class Renderer implements RendererInterface {
|
|||
|
||||
printf(
|
||||
'<div class="notice notice-%s %s" %s%s><p>%s</p></div>',
|
||||
$message->type(),
|
||||
esc_attr( $message->type() ),
|
||||
( $message->is_dismissible() ) ? 'is-dismissible' : '',
|
||||
( $message->wrapper() ? sprintf( 'data-ppcp-wrapper="%s"', esc_attr( $message->wrapper() ) ) : '' ),
|
||||
// Use `empty()` in condition, to avoid false phpcs warning.
|
||||
|
|
|
@ -241,7 +241,8 @@ class ApplepayModule implements ServiceModule, ExtendingModule, ExecutableModule
|
|||
$validation_string = $this->validation_string( $is_sandbox );
|
||||
nocache_headers();
|
||||
header( 'Content-Type: text/plain', true, 200 );
|
||||
echo $validation_string;// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
echo $validation_string;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue