From 52bfe477f3bf0bcc71ef8ef399376f688d569afd Mon Sep 17 00:00:00 2001 From: Robert Date: Thu, 22 Dec 2022 16:14:49 -0500 Subject: [PATCH] Added DB_Filter Status meta data. --- src/bootstrap/safer_io.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bootstrap/safer_io.php b/src/bootstrap/safer_io.php index 047c5b1..7426be4 100644 --- a/src/bootstrap/safer_io.php +++ b/src/bootstrap/safer_io.php @@ -439,6 +439,7 @@ final class safer_io { if (isset($a->use_db_filter) && $a->use_db_filter == DB_FILTER::ON) { $safe_for_db = \tts\safer_sql::get_safer_sql_text($safer_data); $text = $safe_for_db["text"]; + $meta[$input_field_name]['db_filter_status'] = $safe_for_db["status"] ?? \tts\SQL_SAFETY_FLAG::filtered; } else { $text = $safer_data; }