/** * Push the given key => value pair back into the request. * @param string $key * @param string $value * @param boolean $prefix (optional) false to omit Gallery variable prefix (not recommended) */ function putRequestVariable($key, $value, $prefix = true) { if ($prefix) { $key = MYOOS_FORM_VARIABLE_PREFIX . $key; } /* Simulate the damage caused by magic_quotes */ MyOOS_Utilities::unsanitizeInputValues($key); MyOOS_Utilities::unsanitizeInputValues($value); $keyPath = preg_split('/[\\[\\]]/', $key, -1, PREG_SPLIT_NO_EMPTY); MyOOS_Utilities::_internalPutRequestVariable($keyPath, $value, $_GET); }