Commit 9ed4f1ea authored by Radek Suski's avatar Radek Suski

Modified Input::Raw and adjusted controller back

parent e18e341a
......@@ -279,16 +279,16 @@ abstract class Input
$r = null;
switch ( $request ) {
case 'post':
$r = filter_var( $_POST[ $name ], FILTER_SANITIZE_MAGIC_QUOTES );
$r = $_POST[ $name ];
break;
case 'get':
$r = filter_var( $_GET[ $name ], FILTER_SANITIZE_MAGIC_QUOTES );
$r = $_GET[ $name ];
break;
case 'server':
$r = filter_var( $_SERVER[ $name ], FILTER_SANITIZE_MAGIC_QUOTES );
$r = $_SERVER[ $name ];
break;
default:
$r = filter_var( $_REQUEST[ $name ], FILTER_SANITIZE_MAGIC_QUOTES );
$r = $_REQUEST[ $name ];
break;
}
return $r ? $r : $default;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment