Modul:UrlCheck: Unterschied zwischen den Versionen

+path check
(// ergänzt)
(+path check)
Zeile 61: Zeile 61:
end
end


-- future: add path check
-- path check
-- split at '/', last part: t == mw.uri.encode( t ) ?
if aPath ~= '' and
not mw.ustring.match( aPath, '^[-A-Za-z0-9¡-ÿ_.,~%+&;#*?!=()@/]*$' ) then
return 23
end


if s:find( '%.%.' ) or s:find( '%.@' ) or s:find( '@[%.%-]' ) or s:find( '%-%.' )
if s:find( '%.%.' ) or s:find( '%.@' ) or s:find( '@[%.%-]' ) or s:find( '%-%.' )
Anonymer Benutzer