Skip to content

Commit 9e753c6

Browse files
committed
Fix: Logs: Correctly escape search and form action
1 parent 23a7d85 commit 9e753c6

5 files changed

Lines changed: 10 additions & 7 deletions

File tree

_modules/dashboard/views/import-export.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</a>
3333
</h2>
3434

35-
<form name="post" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>" id="<?php echo $this->plugin->name; ?>" enctype="multipart/form-data">
35+
<form name="post" method="post" action="<?php echo esc_attr( $_SERVER['REQUEST_URI'] ); ?>" id="<?php echo $this->plugin->name; ?>" enctype="multipart/form-data">
3636
<div id="poststuff">
3737
<div id="post-body" class="metabox-holder columns-1">
3838
<!-- Content -->

readme.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@ To auto post to Instagram and/or Pinterest, [Upgrade to WordPress to Buffer Pro]
137137

138138
== Changelog ==
139139

140+
= 3.7.5 (2021-09-17) =
141+
* Fix: Logs: Correctly escape search and form action
142+
140143
= 3.7.4 (2021-09-16) =
141144
* Fix: PHP Deprecated notices in PHP 8
142145

vendor/views/log.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
// Search Subtitle
1212
if ( isset( $_REQUEST['s'] ) && ! empty( $_REQUEST['s'] ) ) {
1313
?>
14-
<span class="subtitle left"><?php _e( 'Search results for', 'page-generator-pro' ); ?> &#8220;<?php echo urldecode( $_REQUEST['s'] ); ?>&#8221;</span>
14+
<span class="subtitle left"><?php _e( 'Search results for', 'page-generator-pro' ); ?> &#8220;<?php echo esc_html( urldecode( $_REQUEST['s'] ) ); ?>&#8221;</span>
1515
<?php
1616
}
1717
?>
1818

19-
<form action="admin.php?page=<?php echo sanitize_text_field( $_REQUEST['page'] ); ?>" method="post" id="posts-filter">
19+
<form action="admin.php?page=<?php echo esc_attr( $_REQUEST['page'] ); ?>" method="post" id="posts-filter">
2020
<?php
2121
// Output Search Box
2222
$table->search_box( __( 'Search' ), 'wp-to-social-log' );

vendor/views/settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
<div id="poststuff">
9191
<div id="post-body" class="metabox-holder columns-2">
9292
<!-- Content -->
93-
<form name="post" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>" id="<?php echo $this->base->plugin->name; ?>" class="wp-to-social-pro">
93+
<form name="post" method="post" action="<?php echo esc_attr( $_SERVER['REQUEST_URI'] ); ?>" id="<?php echo $this->base->plugin->name; ?>" class="wp-to-social-pro">
9494
<div id="post-body-content">
9595
<div id="normal-sortables" class="meta-box-sortables ui-sortable publishing-defaults">
9696
<?php

wp-to-buffer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugin Name: WP to Buffer
44
* Plugin URI: http://www.wpzinc.com/plugins/wp-to-buffer-pro
5-
* Version: 3.7.4
5+
* Version: 3.7.5
66
* Author: WP Zinc
77
* Author URI: http://www.wpzinc.com
88
* Description: Send WordPress Pages, Posts or Custom Post Types to your Buffer (buffer.com) account for scheduled publishing to social networks.
@@ -74,8 +74,8 @@ public function __construct() {
7474

7575
$this->plugin->settingsName = 'wp-to-buffer-pro'; // Settings key - used in both Free + Pro, and for oAuth
7676
$this->plugin->account = 'Buffer';
77-
$this->plugin->version = '3.7.4';
78-
$this->plugin->buildDate = '2021-09-16 18:00:00';
77+
$this->plugin->version = '3.7.5';
78+
$this->plugin->buildDate = '2021-09-17 18:00:00';
7979
$this->plugin->requires = '5.0';
8080
$this->plugin->tested = '5.8.1';
8181
$this->plugin->folder = plugin_dir_path( __FILE__ );

0 commit comments

Comments
 (0)