Subversion Repositories Applications.annuaire

Rev

Rev 536 | Rev 561 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 536 Rev 538
Line 37... Line 37...
37
		// Nettoyage du $_GET (sécurité)
37
		// Nettoyage du $_GET (sécurité)
38
		if (isset($_GET)) {
38
		if (isset($_GET)) {
39
			$get_params = array('orderby', 'distinct', 'start', 'limit', 'formatRetour');
39
			$get_params = array('orderby', 'distinct', 'start', 'limit', 'formatRetour');
40
			foreach ($get_params as $get) {
40
			foreach ($get_params as $get) {
41
				$verifier = array('NULL', "\n", "\r", "\\", "'", '"', "\x00", "\x1a", ';');
41
				$verifier = array('NULL', "\n", "\r", "\\", "'", '"', "\x00", "\x1a", ';');
-
 
42
				if (isset($_GET[$get])) {
42
				$_GET[$get] = str_replace($verifier, '', $_GET[$get]);
43
					$_GET[$get] = str_replace($verifier, '', $_GET[$get]);
43
				if (isset($_GET[$get]) && $_GET[$get] != '') {
44
					if ($_GET[$get] != '') {
44
					$this->$get = $_GET[$get];
45
						$this->$get = $_GET[$get];
-
 
46
					}
45
				} else {
47
				} else {
46
					$_GET[$get] = null;
48
					$_GET[$get] = null;
47
				}
49
				}
48
			}
50
			}
49
		}
51
		}