summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2009-09-25 16:17:48 +0000
committerwjames5 <will@tekimaki.com>2009-09-25 16:17:48 +0000
commit21ca45bb9decdd44ca5127aea9625c064e1e278f (patch)
treeb451a56e0b1311b2e04c1b3bfaf158f77c40023b
parent7c74f554c9cba3cd20ea03c5238513c2ed71db86 (diff)
downloadliberty-21ca45bb9decdd44ca5127aea9625c064e1e278f.tar.gz
liberty-21ca45bb9decdd44ca5127aea9625c064e1e278f.tar.bz2
liberty-21ca45bb9decdd44ca5127aea9625c064e1e278f.zip
add convenience func for decoding html requests
-rw-r--r--LibertyContent.php13
1 files changed, 12 insertions, 1 deletions
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 <spider@steelsun.com>
*/
@@ -2822,6 +2822,17 @@ class LibertyContent extends LibertyBase {
}
/**
+ * 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
*
* @param integer Structure ID