Example #1
0
 public function setUp()
 {
     $_GET['a'] = 'test';
     $_POST['b'] = '\\h1"';
     $_GET['c'] = '-23';
     $_POST['d'] = '12.7';
     $_GET['e'] = '3,14';
     $_POST['s_x'] = '0';
     $_GET['f'] = 'root@studip';
     $_GET['v1'] = array('1', '2.4', '3,7');
     $_POST['v2'] = array('on\'e', 'two', 'thr33');
     $_GET['v3'] = array('root@studip', 'hotte.testfreund', 42, '!"$%&/()');
     if (get_magic_quotes_gpc()) {
         $_GET = Request::addslashes($_GET);
         $_POST = Request::addslashes($_POST);
     }
     $GLOBALS['USERNAME_REGULAR_EXPRESSION'] = '/^([a-zA-Z0-9_@.-]{4,})$/';
 }