More flexible report URL format. #1260
This commit is contained in:
parent
2654e5c0b2
commit
48b2a9dc04
@ -157,7 +157,7 @@ Redirect =
|
||||
report: (archive, {boardID, postID}) ->
|
||||
{report} = archive
|
||||
return '' unless /^https?:\/\//.test(report)
|
||||
"#{report}?board=#{boardID}&no=#{postID}"
|
||||
report.replace(/%board/g, boardID).replace(/%post/g, postID)
|
||||
|
||||
securityCheck: (url) ->
|
||||
/^https:\/\//.test(url) or
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user