summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEudyptula <eitan@mosenkis.net>2009-06-19 14:23:12 -0400
committerEudyptula <eitan@mosenkis.net>2009-06-19 14:23:12 -0400
commit5494492326fe0f7ea6127cfeaa1858e3c03a7da0 (patch)
treef7ce84b76ef22067270a75bb63bb2d3f5d88ee87 /frontend/functions/r_stripslashes.php
parentUpdated todo (diff)
downloadingenue-5494492326fe0f7ea6127cfeaa1858e3c03a7da0.tar.gz
ingenue-5494492326fe0f7ea6127cfeaa1858e3c03a7da0.tar.bz2
ingenue-5494492326fe0f7ea6127cfeaa1858e3c03a7da0.zip
Transitioned to support multiple profiles, chosen in the frontend, to use data in Packages file header, began restructuring of frontend build creator
Diffstat (limited to 'frontend/functions/r_stripslashes.php')
-rw-r--r--frontend/functions/r_stripslashes.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/frontend/functions/r_stripslashes.php b/frontend/functions/r_stripslashes.php
new file mode 100644
index 0000000..8d6dccb
--- /dev/null
+++ b/frontend/functions/r_stripslashes.php
@@ -0,0 +1,13 @@
+<?php
+function r_stripslashes(&$array) {
+ debug('r_stripslashes', print_r($array, true));
+ foreach ($array as $key => $value) {
+ if (is_array($value)) {
+ $array[$key]=r_stripslashes($value);
+ } elseif (is_string($value)) {
+ $array[$key]=stripslashes($value);
+ }
+ }
+ return $array;
+}
+?>