All translations
Enter a message name below to show all available translations.
Found 2 translations.
Name | Current message text |
---|---|
h English (en) | When considering user input you should think about the data type you are expecting to retrieve and apply the most stringent form of [[Retrieving_request_data_using_JInput#Getting_Values|JInput]] that is applicable in each case. In particular, avoid the lazy approach of using [[Retrieving_request_data_using_JInput#Getting_Values|JInput->get]] as this will return an array that may contain entries that you did not expect and although each of those entries will have been cleaned, it is often the case that additional filtering could have been applied to some individual arguments. For example, the get method treats all arguments as strings, whereas it may be possible to restrict some arguments to be integers. |
h Chinese (Taiwan) (zh-tw) | 考慮到用戶的輸入內容,您需要思考關於您要獲取的資料類型,並套用最嚴謹的 <code>[[Retrieving_request_data_using_JInput#Getting_Values|JInput]] </code>類型,依照每個不同的案例來應用。特定地說,避免使用像是<code>[[Retrieving_request_data_using_JInput#Getting_Values|JInput->get]] </code>的懶惰蟲手段,因為它會取回陣列,當中可能包含您不想要顯示的。儘管這些內容會被清理,它們經常在某些個別 argument 中,被額外的過濾器找到。例如,get 方法會把所有的 arguments 當成字串(string) 來處理,然而它們是可以被限制為整數之類的。 |