Skip to content

Commit

Permalink
Merge pull request #154 from xylusthemes/enhanced_xss_protection
Browse files Browse the repository at this point in the history
Enhanced XSS Protection
  • Loading branch information
support-xylusthemes authored Dec 13, 2024
2 parents c2eca68 + f9e5acb commit eef8ed7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions includes/class-import-eventbrite-events-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ function column_default( $item, $column_name ) {
function column_title( $item ) {

$iee_url_delete_args = array(
'page' => wp_unslash( $_REQUEST['page'] ),
'page' => esc_attr( wp_unslash( $_REQUEST['page'] ) ),
'iee_action' => 'iee_simport_delete',
'import_id' => absint( $item['ID'] ),
);

$page = wp_unslash( $_REQUEST['page'] );
$page = esc_attr( wp_unslash( $_REQUEST['page'] ) );
$tab = 'scheduled';
$wp_redirect = admin_url( 'admin.php?page=' . $page );
$iee_url_edit_args = array(
Expand Down Expand Up @@ -110,7 +110,7 @@ function column_title( $item ) {
function column_action( $item ) {

$xtmi_run_import_args = array(
'page' => wp_unslash( $_REQUEST['page'] ),
'page' => esc_attr( wp_unslash( $_REQUEST['page'] ) ),
'iee_action' => 'iee_run_import',
'import_id' => $item['ID'],
);
Expand Down Expand Up @@ -435,8 +435,8 @@ function column_default( $item, $column_name ) {
function column_title( $item ) {

$iee_url_delete_args = array(
'page' => wp_unslash( $_REQUEST['page'] ),
'tab' => wp_unslash( $_REQUEST['tab'] ),
'page' => esc_attr( wp_unslash( $_REQUEST['page'] ) ),
'tab' => esc_attr( wp_unslash( $_REQUEST['tab'] ) ),
'iee_action' => 'iee_history_delete',
'history_id' => absint( $item['ID'] ),
);
Expand Down Expand Up @@ -555,8 +555,8 @@ public function extra_tablenav( $which ) {
return;
}
$iee_url_all_delete_args = array(
'page' => wp_unslash( $_REQUEST['page'] ),
'tab' => wp_unslash( $_REQUEST['tab'] ),
'page' => esc_attr( wp_unslash( $_REQUEST['page'] ) ),
'tab' => esc_attr( wp_unslash( $_REQUEST['tab'] ) ),
'iee_action' => 'iee_all_history_delete',
);

Expand Down
2 changes: 1 addition & 1 deletion languages/import-eventbrite-events.pot
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-11-30T07:42:52+00:00\n"
"POT-Creation-Date: 2024-12-13T06:31:15+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: import-eventbrite-events\n"
Expand Down
4 changes: 2 additions & 2 deletions templates/admin/import-eventbrite-events-history.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<div class="iee_row">
<div class="">
<form id="import-history" method="get">
<input type="hidden" name="page" value="<?php echo isset( $_REQUEST['page'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['page'] ) ) : 'eventbrite_event'; ?>" />
<input type="hidden" name="tab" value="<?php echo isset( $_REQUEST['tab'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['tab'] ) ) : 'history'; ?>" />
<input type="hidden" name="page" value="<?php echo isset( $_REQUEST['page'] ) ? esc_attr( sanitize_text_field( wp_unslash( $_REQUEST['page'] ) ) ) : 'eventbrite_event'; ?>" />
<input type="hidden" name="tab" value="<?php echo isset( $_REQUEST['tab'] ) ? esc_attr( sanitize_text_field( wp_unslash( $_REQUEST['tab'] ) ) ) : 'history'; ?>" />
<?php
$listtable->display();
?>
Expand Down

0 comments on commit eef8ed7

Please sign in to comment.