Skip to content

Commit

Permalink
fixed missing sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsayan committed Aug 14, 2024
1 parent 1f58210 commit 46c7611
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions docs/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Author URI: https://instawp.com/?utm_source=sl_plugin_author
Plugin URI: http://wordpress.org/plugins/string-locator/
Tags: text, search, find, syntax, highlight
Requires at least: 4.9
Tested up to: 6.5
Stable tag: 2.6.5
Tested up to: 6.6
Stable tag: 2.6.6
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

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

== Changelog ==

= 2.6.6 (2024-08-14) =
* Fixed missing URL input sanitization.
* Verified compatibility with WordPress 6.6

= 2.6.5 (2024-03-12) =
* Verified compatibility with WordPress 6.5

Expand Down
4 changes: 2 additions & 2 deletions includes/Extension/SQL/views/editor/sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@

$format = 'string';

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

$editor_content = $row->{ $_GET['sql-column'] };
$editor_content = $row->{ esc_html( $_GET['sql-column'] ) };
?>
<form id="string-locator-edit-form" class="string-locator-editor-wrapper">
<?php wp_nonce_field( 'wp_rest' ); ?>
Expand Down
2 changes: 1 addition & 1 deletion string-locator.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: String Locator
* Plugin URI: https://wordpress.org/plugins/string-locator/
* Description: Scan through theme and plugin files looking for text strings
* Version: 2.6.5
* Version: 2.6.6
* Author: InstaWP
* Author URI: https://instawp.com/
* Text Domain: string-locator
Expand Down

0 comments on commit 46c7611

Please sign in to comment.