Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When parameter with empty value is passed to the JInput and filter is INT, JInput will return 0 instead of default value. #5851

Closed
klas opened this issue Jan 21, 2015 · 0 comments

Comments

@klas
Copy link
Contributor

klas commented Jan 21, 2015

Steps to reproduce the issue

Pass parameter like abc= to the url. If you do $abc = JFactory::getApplication()->input->get('abc',null,'int); you will get 0 as value.

Expected result

null (or any other default specified in get call )

Actual result

0

System information (as much as possible)

Additional comments

@klas klas changed the title When parameter with empty value is passed to the JInput and filter is INT, JInput will return 0 instead of default value. When parameter with empty value is passed to the JInput and filter is INT, JInput will return 0 instead of default value. Jan 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants