On 25.05.2013 05:46, Guenter Knauf wrote:
Found another small docu bug:

r:unescape(string) -- Unescapes an URL-escaped string:

local url = "http%3a%2f%2ffoo.bar%2f1+2+3+%26+4+%2b+5"
local unescaped = r:escape(url) -- returns 'http://foo.bar/1 2 3 & 4 + 5'

the function call should here be r:unescape(url) ...

another one missing from the docs:

r:construct_url(string) -- Constructs an URL from an URI

local url = r:construct_url(r.uri)


Gün.


Reply via email to