【モバイル】携帯電話 ..
322:nobodyさん
06/09/08 18:41:52
4.3.0この関数は非推奨となりました。利用しないでください。代わりに mysql_real_escape_string() を利用してください。
URLリンク(jp2.php.net)
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.
URLリンク(jp2.php.net)
次ページ最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
4988日前に更新/172 KB
担当:undef