discourse/app
OsamaSayegh 2f7a307237 FIX: Prevent duplicates in API scope allowed URLs
It's possible in Rails to map a single route to multiple controller
actions with different constraints. We do this in at least 1 place in
our application for the root route (/) to make it possible to change the
page that root route displays.

This means that if you get the list of routes of your application,
you'll get the same route for each time the route is defined. And if
there's an API scope for 2 (or more) controller actions that map to the
same route, the route will be listed twice in the Allowed URLs list of
the scope.

To prevent this, this PR adds the allowed URLs in a set so that
duplicate routes are automatically removed.
2022-04-07 02:09:11 +03:00
..
assets DEV: Improve ember test (testem) output (#16401) 2022-04-06 22:57:52 +01:00
controllers FEATURE: Allow multiple required tag groups for a category (#16381) 2022-04-06 14:08:06 +01:00
helpers FIX: include crawler content on old mobile browsers (#16387) 2022-04-06 11:09:12 +01:00
jobs FIX: Do not attempt to pull_hotlinked_image for raw_html 2022-04-05 16:39:38 +08:00
mailers FEATURE: Allow sending group SMTP emails with from alias (#15687) 2022-02-07 13:52:01 +10:00
models FIX: Prevent duplicates in API scope allowed URLs 2022-04-07 02:09:11 +03:00
serializers FEATURE: Allow multiple required tag groups for a category (#16381) 2022-04-06 14:08:06 +01:00
services FIX: Exclude automatic anchors from search index (#16396) 2022-04-06 16:06:45 -04:00
views linting (#16360) 2022-04-02 10:47:01 -05:00