01-27-2016, 11:20 PM
I'm really digging the input class. I need to roll a change out to version 3.x, but basically instead of doing something like
you can do
And it grabs the get OR post input and completely sanitizes it with this...
That's a ton of functionality with one slight change to grabbing your inputs. And it's available to everyone using UserSpice 3.1.1 or later.
Code:
$permission = ($_POST['name']);
you can do
Code:
$permission = Input::get('name');
And it grabs the get OR post input and completely sanitizes it with this...
Code:
return trim(htmlentities($string, ENT_QUOTES, 'UTF-8'));
That's a ton of functionality with one slight change to grabbing your inputs. And it's available to everyone using UserSpice 3.1.1 or later.