Skip to content

Commit

Permalink
fix deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
torounit committed Nov 22, 2024
1 parent 5dc449e commit 0d93126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Container_Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function create(): Container {
'var.name' => 'post_type_to_export',
'slug' => 'simple_csv_exporter',
'post_type' => function ( ContainerInterface $c ) {
return filter_input( INPUT_POST, $c->get( 'var.name' ), FILTER_SANITIZE_STRING ) ?? '';
return filter_input( INPUT_POST, $c->get( 'var.name' ), FILTER_SANITIZE_SPECIAL_CHARS ) ?? '';
},
Nonce::class => create()->constructor( get( 'slug' ) ),
Data_Builder::class => factory(
Expand Down

0 comments on commit 0d93126

Please sign in to comment.