luci-base: fix possible shell injection in luci.tools.status.switch_status()
[project/luci.git] / modules / luci-base / luasrc / util.luadoc
index 1c09b7a..949aeb2 100644 (file)
@@ -1,8 +1,7 @@
 ---[[
 LuCI utility functions.
-
-module "luci.util"
 ]]
+module "luci.util"
 
 ---[[
 Create a Class object (Python-style object model).
@@ -110,13 +109,13 @@ Remove leading and trailing whitespace from given string value.
 ]]
 
 ---[[
-Count the occurences of given substring in given string.
+Count the occurrences of given substring in given string.
 
 @class function
 @name cmatch
 @param str             String to search in
 @param pattern String containing pattern to find
-@return                        Number of found occurences
+@return                        Number of found occurrences
 ]]
 
 ---[[
@@ -182,7 +181,8 @@ Checks whether the given table contains the given value.
 @name contains
 @param table   Table value
 @param value   Value to search within the given table
-@return                Boolean indicating whether the given value occurs within table
+@return                number indicating the first index at which the given value occurs
+--                     within table or false.
 ]]
 
 ---[[