Subversion Repositories Sites.obs-saisons.fr

Rev

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

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