]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
added comments on get_input and set_input since they do not handle nested arrays
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 16 Dec 2009 12:35:20 +0000 (12:35 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 16 Dec 2009 12:35:20 +0000 (12:35 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@3760 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/input.php

index a412f3644c68222e8f43f9fae293b7b8d9233414..abc2d6811100c6dea853a24cd7430908ce277d1d 100644 (file)
@@ -12,6 +12,9 @@
 /**
  * Get some input from variables passed on the GET or POST line.
  *
+ * Note: this function does not handle nested arrays (ex: form input of param[m][n])
+ * because of the filtering done in htmlawed from the filter_tags call.
+ * 
  * @param $variable string The variable we want to return.
  * @param $default mixed A default value for the variable if it is not found.
  * @param $filter_result If true then the result is filtered for bad tags.
@@ -49,6 +52,8 @@ function get_input($variable, $default = "", $filter_result = true) {
 
 /**
  * Sets an input value that may later be retrieved by get_input
+ * 
+ * Note: this function does not handle nested arrays (ex: form input of param[m][n])
  *
  * @param string $variable The name of the variable
  * @param string $value The value of the variable