discourse/app
Martin Brennan 39b2fb8649
FIX: Invalid URLs could raise exceptions when calling UrlHelper.rails_route_from_url (#10782)
Upload.secure_media_url? raised an exceptions when the URL was invalid,
which was a issue in some situations where secure media URLs must be
removed.

For example, sending digests used PrettyText.strip_secure_media,
which used Upload.secure_media_url? to replace secure media with
placeholders. If the URL was invalid, then an exception would be raised
and left unhandled.

Now instead in UrlHelper.rails_route_from_url we return nil if there is something wrong with the URL.

Co-authored-by: Bianca Nenciu <nenciu.bianca@gmail.com>
2020-09-30 15:20:00 +10:00
..
assets UI: Remove background from group notifications of @mentions (#10775) 2020-09-29 18:44:12 -05:00
controllers FIX: Use correct locale for error messages (#10776) 2020-09-29 21:42:45 +02:00
helpers DEV: make it possible to enable cdn in development environment. 2020-09-23 11:52:16 +05:30
jobs FIX: email always settings were not being respected 2020-09-23 22:00:15 +05:30
mailers FEATURE: Allow email image embed with secure media (#10563) 2020-09-10 09:50:16 +10:00
models FIX: Invalid URLs could raise exceptions when calling UrlHelper.rails_route_from_url (#10782) 2020-09-30 15:20:00 +10:00
serializers FIX: Do not downcase group name in current user serializer 2020-09-17 13:03:42 -04:00
services DEV: Move UserApiKey scopes to dedicated table (#10704) 2020-09-29 10:57:48 +01:00
views FEATURE: Dark-mode-friendly wizard (#10739) 2020-09-25 08:56:23 -04:00