[表示 : 全て 最新50 1-99 101- 201- 301- 401- 501- 601- 701- 801- 2chのread.cgiへ]
Update time : 05/24 15:06 / Filesize : 172 KB / Number-of Response : 801
[このスレッドの書き込みを削除する]
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧] [類似スレッド一覧]


↑キャッシュ検索、類似スレ動作を修正しました、ご迷惑をお掛けしました

【モバイル】携帯電話向け開発について語るスレ



322 名前:nobodyさん mailto:sage [2006/09/08(金) 18:41:52 ID:???]
4.3.0この関数は非推奨となりました。利用しないでください。代わりに mysql_real_escape_string() を利用してください。

jp2.php.net/manual/ja/function.mysql-escape-string.php

addslashes does NOT make your input safe for use in a database query! It only escapes according to what PHP defines,
not what your database driver defines. Any use of this function to escape strings for use in a database
is likely an error - mysql_real_escape_string, pg_escape_string, etc, should be used depending on your underlying database
as each database has different escaping requirements. In particular, MySQL wants \n, \r and \x1a escaped which addslashes
does NOT do. Therefore relying on addslashes is not a good idea at all and may make your code vulnerable to security risks.
I really don't see what this function is supposed to do.

jp2.php.net/manual/ja/function.addslashes.php






[ 続きを読む ] / [ 携帯版 ]

全部読む 前100 次100 最新50 [ このスレをブックマーク! 携帯に送る ] 2chのread.cgiへ
[+板 最近立ったスレ&熱いスレ一覧 : +板 最近立ったスレ/記者別一覧]( ´∀`)<172KB

read.cgi ver5.27 [feat.BBS2 +1.6] / e.0.2 (02/09/03) / eucaly.net products.
担当:undef