Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 822 Rev 827
Line 92... Line 92...
92
	 * @param $requete
92
	 * @param $requete
93
	 */
93
	 */
94
	protected function protegerRequete($requete) {
94
	protected function protegerRequete($requete) {
95
		if (substr_count($requete, '|') % 2 === 0) {
95
		if (substr_count($requete, '|') % 2 === 0) {
96
			if (preg_match_all('/\|([^|]*)\|/', $requete, $correspondances, PREG_SET_ORDER)) {
96
			if (preg_match_all('/\|([^|]*)\|/', $requete, $correspondances, PREG_SET_ORDER)) {
97
				print_r($correspondances);
-
 
98
				foreach ($correspondances as $chaine) {
97
				foreach ($correspondances as $chaine) {
99
					$chaine_protegee = $this->bdd->quote($chaine[1]);
98
					$chaine_protegee = $this->bdd->quote($chaine[1]);
100
					$requete = str_replace($chaine[0], $chaine_protegee, $requete);
99
					$requete = str_replace($chaine[0], $chaine_protegee, $requete);
101
				}
100
				}
102
			}
101
			}