From f029df8445e8822b23e773d6ff33edd1a100d348 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 20 Aug 2023 12:00:50 +0700 Subject: [PATCH] Updated --- common.php | 13 +++++++++++++ library/attach_mod/includes/functions_attach.php | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/common.php b/common.php index 603ba206..7ecd4e1f 100644 --- a/common.php +++ b/common.php @@ -82,6 +82,19 @@ function sqlite3_escape_string ($str) return SQLite3::escapeString($str); } +/** + * html_entity_decode replacement (from php manual) + */ +if (!function_exists('html_entity_decode')) +{ + function html_entity_decode($given_html, $quote_style = ENT_QUOTES) + { + $trans_table = array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style)); + $trans_table['''] = "'"; + return (strtr($given_html, $trans_table)); + } +} + /** * Database */ diff --git a/library/attach_mod/includes/functions_attach.php b/library/attach_mod/includes/functions_attach.php index 50238a4b..4826bc67 100644 --- a/library/attach_mod/includes/functions_attach.php +++ b/library/attach_mod/includes/functions_attach.php @@ -4,19 +4,6 @@ * All Attachment Functions needed everywhere */ -/** -* html_entity_decode replacement (from php manual) -*/ -if (!function_exists('html_entity_decode')) -{ - function html_entity_decode($given_html, $quote_style = ENT_QUOTES) - { - $trans_table = array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style)); - $trans_table['''] = "'"; - return (strtr($given_html, $trans_table)); - } -} - /** * A simple dectobase64 function */