From bf1d665f703dde916a066d76db67c41afb76fc26 Mon Sep 17 00:00:00 2001 From: Boyd Stephen Smith Jr Date: Sat, 6 Aug 2011 11:51:40 -0500 Subject: [PATCH] Replace other global "out" function. --- interface/super/rules/include/common.php | 8 +------- library/htmlspecialchars.inc.php | 4 ++-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/interface/super/rules/include/common.php b/interface/super/rules/include/common.php index 0c267ae21..05b4d134b 100644 --- a/interface/super/rules/include/common.php +++ b/interface/super/rules/include/common.php @@ -6,13 +6,7 @@ // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. -/** - * This is a shortcut for htmlspecial vars. - * @param $txt - */ -function out( $txt ) { - return htmlspecialchars( $txt , ENT_QUOTES ); -} +require_once(dirname(__FILE__)."/../../../../library/htmlspecialchars.inc.php"); /** * This is a wrapper for implode function, which calls each function in the diff --git a/library/htmlspecialchars.inc.php b/library/htmlspecialchars.inc.php index be7eaa43a..d436a6ff7 100644 --- a/library/htmlspecialchars.inc.php +++ b/library/htmlspecialchars.inc.php @@ -43,8 +43,8 @@ function attr($text) { } /* -This function is for compatibility with the out function defined as part of the -CDR Admin framework. +This function is a compatibility replacement for the out function removed from +the CDR Admin framework. */ function out($text) { return attr($text); -- 2.11.4.GIT