Subversion Repositories eFlore/Applications.cel

Compare Revisions

Ignore whitespace Rev 700 → Rev 701

/trunk/jrest/services/Cel.php
15,6 → 15,7
const TYPE_IMG = 'image';
public $config;
private $ressources;
private $parametres;
protected $bdd;
protected $messages = array();
114,8 → 115,7
$get_params = array('orderby', 'distinct', 'start', 'limit', 'formatRetour');
foreach ($get_params as $get) {
if (isset($_GET[$get])) {
$verifier = array('NULL', "\n", "\r", "\\", "'", '"', "\x00", "\x1a", ';');
$_GET[$get] = strip_tags(str_replace($verifier, '', $_GET[$get]));
$_GET[$get] = $this->verifierSecuriteParametreUrl($_GET[$get]);
if ($_GET[$get] != '') {
if (!isset($this->$get)) {
$this->$get = $_GET[$get];
131,6 → 131,12
}
}
protected function verifierSecuriteParametreUrl($param) {
$verifier = array('NULL', "\n", "\r", "\\", "'", '"', "\x00", "\x1a", ';');
$param = strip_tags(str_replace($verifier, '', $param));
return $param;
}
private function definirParametresUrlParDefaut() {
if (!isset($this->start)) {
$this->start = 0;