mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 06:56:01 +08:00
Whitelist the alternative raw
url
This commit is contained in:
parent
1e1e40c75f
commit
11641fb3cd
|
@ -8,6 +8,7 @@ const TOPIC_REGEXP = /\/t\/([^\/]+)\/(\d+)\/?(\d+)?/;
|
|||
// We can add links here that have server side responses but not client side.
|
||||
const SERVER_SIDE_ONLY = [
|
||||
/^\/posts\/\d+\/raw/,
|
||||
/^\/raw\/\d+/,
|
||||
/\.rss$/,
|
||||
/\.json/,
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue
Block a user