From 21ca45bb9decdd44ca5127aea9625c064e1e278f Mon Sep 17 00:00:00 2001 From: wjames5 Date: Fri, 25 Sep 2009 16:17:48 +0000 Subject: add convenience func for decoding html requests --- LibertyContent.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/LibertyContent.php b/LibertyContent.php index cba4b3a..a7320d0 100644 --- a/LibertyContent.php +++ b/LibertyContent.php @@ -3,7 +3,7 @@ * Management of Liberty content * * @package liberty -* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyContent.php,v 1.407 2009/08/21 18:02:09 tylerbello Exp $ +* @version $Header: /cvsroot/bitweaver/_bit_liberty/LibertyContent.php,v 1.408 2009/09/25 16:17:48 wjames5 Exp $ * @author spider */ @@ -2821,6 +2821,17 @@ class LibertyContent extends LibertyBase { return $ret; } + /** + * convenience function to process a $_REQUEST array + **/ + function decodeAjaxRequest( &$pParamHash ){ + foreach( $pParamHash as $key => $value ){ + if( is_string($value) ){ + $pParamHash[$key] = htmlspecialchars_decode( $value ); + } + } + } + /** * Set content related mStructureId * -- cgit v1.3