X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=core%2Fsrc%2Fffluci%2Futil.lua;h=9e3c7f25e97e0c702aed25e05b0b79c96890eb54;hb=4264e6b7808066686223d0294bd01a84659f9f38;hp=3ff7bc2033f5e7a970e4ab6fccc47e29e6dc3b3f;hpb=b15171305b5e6e9b1da4dc05c4d7e105980b9d9d;p=project%2Fluci.git diff --git a/core/src/ffluci/util.lua b/core/src/ffluci/util.lua index 3ff7bc203..9e3c7f25e 100644 --- a/core/src/ffluci/util.lua +++ b/core/src/ffluci/util.lua @@ -139,12 +139,6 @@ function resfenv(f) end --- Returns the Haserl unique sessionid -function sessionid() - return ENV.SESSIONID -end - - -- Splits a string into an array function split(str, pat, max, regex) pat = pat or "\n" @@ -176,8 +170,8 @@ function split(str, pat, max, regex) end -- Removes whitespace from beginning and end of a string -function trim(string) - local s = string:gsub("^%s*(.-)%s*$", "%1") +function trim(str) + local s = str:gsub("^%s*(.-)%s*$", "%1") return s end