Retourner au contenu associé (dépêche : Zend Framework 1.0.0 : PHP à la suite de Ruby on Rail)
Posté par choon le 03 juillet 2007 à 07:21. En réponse à la dépêche Zend Framework 1.0.0 : PHP à la suite de Ruby on Rail. Évalué à 2.
class Tools { static public function remove_magic_quotes(&$array) { foreach($array as $key => $val) { if(is_array($val)) { self::remove_magic_quotes($array[$key]); } else if(is_string($val)) { $array[$key] = stripslashes($val); } } } } if(get_magic_quotes_gpc() == 1) { if(!empty($_POST)) { Tools::remove_magic_quotes($_POST); } if(!empty($_GET)) { Tools::remove_magic_quotes($_GET); } }
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: *khof* *khof*
Posté par choon . En réponse à la dépêche Zend Framework 1.0.0 : PHP à la suite de Ruby on Rail. Évalué à 2.
et il n'y a plus de problème.