Skip to content

Commit

Permalink
The FILTER_UNSAFE_RAW is not required, the default `sanitize_text_f…
Browse files Browse the repository at this point in the history
…ield` will work fine.
  • Loading branch information
remcotolsma committed Oct 11, 2023
1 parent 18de110 commit b58b941
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public function get_settings_fields() {
// Storename.
$fields[] = [
'section' => 'general',
'filter' => FILTER_UNSAFE_RAW,
'meta_key' => '_pronamic_gateway_ems_ecommerce_storename',
'title' => _x( 'Storename', 'ems', 'pronamic_ideal' ),
'type' => 'text',
Expand All @@ -80,7 +79,6 @@ public function get_settings_fields() {
// Shared secret.
$fields[] = [
'section' => 'general',
'filter' => FILTER_UNSAFE_RAW,
'meta_key' => '_pronamic_gateway_ems_ecommerce_secret',
'title' => _x( 'Shared Secret', 'ems', 'pronamic_ideal' ),
'type' => 'text',
Expand All @@ -91,10 +89,6 @@ public function get_settings_fields() {
// Purchase ID.
$fields[] = [
'section' => 'advanced',
/**
* Filter EMS order ID unsafe raw to allow double quotes.
*/
'filter' => \FILTER_UNSAFE_RAW,
'meta_key' => '_pronamic_gateway_ems_ecommerce_order_id',
'title' => __( 'Order ID', 'pronamic_ideal' ),
'type' => 'text',
Expand Down

0 comments on commit b58b941

Please sign in to comment.