mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06: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