Skip to content

Commit 46c7611

Browse files
committed
fixed missing sanitization
1 parent 1f58210 commit 46c7611

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

docs/readme.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Author URI: https://instawp.com/?utm_source=sl_plugin_author
44
Plugin URI: http://wordpress.org/plugins/string-locator/
55
Tags: text, search, find, syntax, highlight
66
Requires at least: 4.9
7-
Tested up to: 6.5
8-
Stable tag: 2.6.5
7+
Tested up to: 6.6
8+
Stable tag: 2.6.6
99
License: GPLv2 or later
1010
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -46,6 +46,10 @@ When writing your search string, make sure to wrap your search in forward slashe
4646

4747
== Changelog ==
4848

49+
= 2.6.6 (2024-08-14) =
50+
* Fixed missing URL input sanitization.
51+
* Verified compatibility with WordPress 6.6
52+
4953
= 2.6.5 (2024-03-12) =
5054
* Verified compatibility with WordPress 6.5
5155

includes/Extension/SQL/views/editor/sql.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535

3636
$format = 'string';
3737

38-
if ( is_serialized( $row->{ $_GET['sql-column'] }, true ) ) {
38+
if ( is_serialized( $row->{ esc_html( $_GET['sql-column'] ) }, true ) ) {
3939
$format = 'serialized';
4040
}
4141

42-
$editor_content = $row->{ $_GET['sql-column'] };
42+
$editor_content = $row->{ esc_html( $_GET['sql-column'] ) };
4343
?>
4444
<form id="string-locator-edit-form" class="string-locator-editor-wrapper">
4545
<?php wp_nonce_field( 'wp_rest' ); ?>

string-locator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: String Locator
44
* Plugin URI: https://wordpress.org/plugins/string-locator/
55
* Description: Scan through theme and plugin files looking for text strings
6-
* Version: 2.6.5
6+
* Version: 2.6.6
77
* Author: InstaWP
88
* Author URI: https://instawp.com/
99
* Text Domain: string-locator

0 commit comments

Comments
 (0)