From ad3b0b1a62d69aed6f1fd2ae61932086025aa370 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 18 Mar 2019 11:19:16 +0100 Subject: [PATCH] Removed deprecated function function test_sql_and_script_inject that was replaced with testSqlAndScriptInject --- ChangeLog | 1 + htdocs/main.inc.php | 16 ---------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index efc1be2c344..08aaaa4b6f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19,6 +19,7 @@ Following changes may create regressions for some external modules, but were nec * Files for variables of themes were renamed from graph-color.php into theme_vars.inc.php to match naming convention of extension .inc.php for files to be included. * All methods set_draft() were renamed into setDraft(). +* Removed deprecated function function test_sql_and_script_inject that was replaced with testSqlAndScriptInject. ***** ChangeLog for 9.0.1 compared to 9.0.0 ***** diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index a473f9a5abd..109d0f5f1fe 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -68,22 +68,6 @@ if (function_exists('get_magic_quotes_gpc')) // magic_quotes_* deprecated in PHP } } -// phpcs:disable PEAR.NamingConventions.ValidFunctionName.NotCamelCaps -/** - * Security: SQL Injection and XSS Injection (scripts) protection (Filters on GET, POST, PHP_SELF). - * - * @param string $val Value - * @param string $type 1=GET, 0=POST, 2=PHP_SELF, 3=GET without sql reserved keywords (the less tolerant test) - * @return int >0 if there is an injection, 0 if none - * @deprecated use testSqlAndScriptInject - * @see testSqlAndScriptInject($val, $type) - */ -function test_sql_and_script_inject($val, $type) -{ - // phpcs:enable - return testSqlAndScriptInject($val, $type); -} - /** * Security: SQL Injection and XSS Injection (scripts) protection (Filters on GET, POST, PHP_SELF). *