Modul:UrlCheck: Unterschied zwischen den Versionen
+path check
(// ergänzt) |
(+path check) |
||
| Zeile 61: | Zeile 61: | ||
end | end | ||
-- | -- path check | ||
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( '%-%.' ) | ||