Translations

Translations:Secure coding guidelines/42/zh-tw

From Joomla! Documentation

Revision as of 07:50, 14 January 2021 by Shawnhy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

// For SQL data types: FLOAT, DOUBLE $query = 'SELECT * FROM #__table WHERE `id`=' . (float) $id; </source> 總是對使用 <cdoe> JInput->getInt獲得的變數進行整數型別轉換,絕對是個好習慣。關於 SQL 注入攻擊更進一步的資訊,可以在 http://php.net/manual/en/security.database.sql-injection.php 以及 Retrieving_request_data_using_JInput#Getting_Values 找到。