FrozenNode / XssInput

A simple extension of the Laravel Input facade that mimics CodeIgniter's xss filtering
41 stars 20 forks source link

Default Value Woes #8

Open davzie opened 10 years ago

davzie commented 10 years ago

Great library and one I would love to continue using. I have found however that where I provide a default fallback for my Input key, it returns a string instead.

For example:

$albumId = Input::get('album_id',null);

This is actually returning

string(0) ''

I've delved into the code and can see you're utilising Laravel's Request input anyway to handle this for you and I've tried to put some conditionals into the cleaning method but I can't really seem to get to grips with why it still isn't working so for the moment I have reverted to using Laravel's input facade.

Thanks a bunch for the great work so far though!

janhartigan commented 10 years ago

I'm not really dedicating a lot of time to this package, but pull requests are welcome.