From f3116d976299134a8b67127620efd47bacd77868 Mon Sep 17 00:00:00 2001 From: Ole Melhus Date: Fri, 5 May 2023 10:23:31 +0200 Subject: [PATCH] fix: change " to ' in queries --- includes/class-bsr-db.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/class-bsr-db.php b/includes/class-bsr-db.php index 2d7c85e..b46a39f 100644 --- a/includes/class-bsr-db.php +++ b/includes/class-bsr-db.php @@ -231,7 +231,7 @@ public function srdb( $table, $page, $args ) { $data_to_fix = $row[ $column ]; if ( $column == $primary_key ) { - $where_sql[] = $column . ' = "' . $this->mysql_escape_mimic( $data_to_fix ) . '"'; + $where_sql[] = $column . ' = \'' . $this->mysql_escape_mimic( $data_to_fix ) . '\''; continue; } @@ -276,7 +276,7 @@ public function srdb( $table, $page, $args ) { // Something was changed if ( $edited_data != $data_to_fix ) { - $update_sql[] = $column . ' = "' . $this->mysql_escape_mimic( $edited_data ) . '"'; + $update_sql[] = $column . ' = \'' . $this->mysql_escape_mimic( $edited_data ) . '\''; $upd = true; $table_report['change']++; }