From b3b723b4531a3781ab847a2652cf192303e78941 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Sun, 25 Dec 2016 18:29:21 +0100 Subject: Refactored to put URL Encoding / Decoding in a single place. (#3491) --- Server/Plugins/APIDump/APIDesc.lua | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'Server/Plugins/APIDump/APIDesc.lua') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index 3fc21b6a3..d4a814cb9 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -13534,6 +13534,44 @@ local CompressedString = cStringCompression.CompressStringGZIP("DataToCompress") }, Notes = "Parses the Authority part of the URL. Parts that are not explicitly specified in the AuthPart are returned empty, the port is returned zero. If parsing fails, the function returns nil and an error message.", }, + UrlDecode = + { + IsStatic = true, + Params = + { + { + Name = "Text", + Type = "string", + }, + }, + Returns = + { + { + Name = "Decoded", + Type = "string", + }, + }, + Notes = "Returns the Text, URL-decoded. Returns nil if there is a problem while decoding (invalid input).", + }, + UrlEncode = + { + IsStatic = true, + Params = + { + { + Name = "Text", + Type = "string", + }, + }, + Returns = + { + { + Name = "Encoded", + Type = "string", + }, + }, + Notes = "Returns the Text, URL-encoded.", + }, }, AdditionalInfo = { -- cgit v1.2.3