16 Mar 2010
In GetPostUtils in Zoop 1.5.0 there is a difference in how the function works compared to Zoop 1.3. In 1.3 the function just checks to see if the variable is set in the Global post variable, but in 1.5 the behavior is based on the findPostItem function. This causes an issue with variables that have a empty string value.
Take for example if you submit a variable called "test" with an empty string for the value so the post data would be "test=". In Zoop 1.3 this would be set, but in Zoop 1.5 this variable would be considered unset. Was this intended?
//Line 108 in app/post_utils.php
/**
* Checks to see if a variable was in the POST
*
* @param string $inName Name of the variable
* @return boolean
*/
function getPostIsset($inName = false)
{
$item = findPostItem($inName);
//The !item returns false if the variable isset but it is empty
if(!$item)
return false;
return true;
}
Recent comments
3 hours 9 min ago
3 hours 12 min ago
21 hours 37 min ago
23 hours 25 min ago
23 hours 26 min ago
1 day 5 hours ago
1 day 21 hours ago
1 day 23 hours ago
1 day 23 hours ago
2 days 15 min ago