diff --git a/src/Settings.php b/src/Settings.php
index ac33d1b..ee05ae7 100644
--- a/src/Settings.php
+++ b/src/Settings.php
@@ -82,7 +82,11 @@ public function field_type_disconnect_button(
$object_type,
$field_type_object
) {
- printf( '%s', admin_url( 'admin.php?page=ssc_options&disconnect_simpleshop=1' ), __( 'Disconnect Simple Shop', 'simpleshop-cz' ) );
+ printf(
+ '%s',
+ htmlspecialchars( admin_url( 'admin.php?page=ssc_options&disconnect_simpleshop=1' ) , ENT_QUOTES),
+ __( 'Disconnect Simple Shop', 'simpleshop-cz' )
+ );
}
/**
@@ -389,6 +393,7 @@ public function settings_notices( $object_id, $updated ) {
add_settings_error( $this->key . '-error', '', __( 'Error during communication with SimpleShop API, please try it later', 'simpleshop-cz' ), 'error' );
settings_errors( $this->key . '-error' );
+
return;
}