Module:Citation/CS1: Difference between revisions
pattern escaping, yay
m>Dragons flight (oops) |
m>Dragons flight (pattern escaping, yay) |
||
Line 78: | Line 78: | ||
function safeforurl( str ) | function safeforurl( str ) | ||
return str:gsub('[','['):gsub(']',']') | return str:gsub('%[','['):gsub('%]',']') | ||
end | end | ||