Skip to content

Commit

Permalink
ID#240: fixed issue with "0" values not recognized in action input pa…
Browse files Browse the repository at this point in the history
…rameters.
  • Loading branch information
Christian Achatz committed Jan 10, 2015
1 parent 960030f commit 87c55bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/filter/ChainedStandardInputFilter.php
Expand Up @@ -94,8 +94,9 @@ public function filter(FilterChain &$chain, $input = null) {

$tmpArray = explode(':', $paramsArray[$i]);

// ID#240: allow "0" values to be passed as within front controller action input value.
if (isset($tmpArray[0]) && isset($tmpArray[1])
&& !empty($tmpArray[0]) && !empty($tmpArray[1])
&& !empty($tmpArray[0]) && (!empty($tmpArray[1]) || (string) $tmpArray[1] === '0')
) {
$inputParams[$tmpArray[0]] = $tmpArray[1];
}
Expand Down

0 comments on commit 87c55bf

Please sign in to comment.