Modulo:Webarchive/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m fix, path non è mai nil
altro controllo per prevenire il valore restituito dalla funzione base62 quando la stringa è vuota
Riga 158:
function p.decodeWebciteDate(url)
local path = mw.uri.new(url).path
if path == '' then return end
local path_elements = mw.text.split(path, '/')
 
Riga 169 ⟶ 168:
-- http://www.webcitation.org/getfile.php?fileid=1c46e791d68e89e12d0c2532cc3cf629b8bc8c8e
 
if path == '' or not path_elements[2] or mw.ustring.find(path_elements[2], == 'query') orthen
return
elseif mw.ustring.find(path_elements[2], 'query') or
mw.ustring.find(path_elements[2], 'cache') or
mw.ustring.find(path_elements[2], 'getfile') or