If using the JInput::getArray() function without parameters e.g.
        $mypostdata = $myapp->input->post->getArray();
and the post data contains variables having values matching a JInputFilter type e.g. 'integer', 'int', 'float' etc. these values will be applied as filter in the following function code:
                if (is_null($datasource))
                {
                    $results[$k] = $this->get($k, null, $v);
                }
When calling the function without parameters the function uses the class property 'data', which is an associative array with variable names and their values.
So, a POST variable 'myinputstring' containing a string value 'integer' will be returned as an integer containing a 0, which is definetly a wrong behaviour.
Wouldn't it be better to detect a parameterless function call to apply 'RAW' filters in that case?
| Labels | 
                                        Added: 
?
 | 
    ||
| Category | ⇒ | Libraries | 
| Status | New | ⇒ | Closed | 
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-02-12 21:25:12 | 
| Closed_By | ⇒ | zero-24 | 
| Status | New | ⇒ | Closed | 
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-02-12 21:25:19 | 
Set to "closed" on behalf of @zero-24 by The JTracker Application at issues.joomla.org/joomla-cms/6008
Closing here as we have a PR by @Erftralle here: #6035 Thanks!
Opened pull request #6035 with a proposal for a fix.