discourse/app
Blake Erickson 7d09af7eda
FIX: Prevent null-byte searches causing 500 error (#8226)
This fix ensures that searches that contain a null byte return a 400
error instead of causing a 500 error.

For some reason from rspec we will reach the raise statement inside
of the `rescue_from ArgumentError` block, but outside of rspec it will
not execute the raise statement and so a 500 is thrown instead of
reaching the `rescue_from Discourse::InvalidParameters` block inside of
the application controller.

This fix raises Discourse::InvalidParameters directly from the search
controller instead of relying on `PG::Connection.escape_string` to
raise the `ArgumentError`.
2019-10-22 08:44:52 -06:00
..
assets Support for importing @ember/component and @ember/routing/route (#8214) 2019-10-22 09:47:27 -04:00
controllers FIX: Prevent null-byte searches causing 500 error (#8226) 2019-10-22 08:44:52 -06:00
helpers DEV: pluck_first 2019-10-21 12:08:20 +01:00
jobs FIX: Zeitwerk-related fixes for jobs. (#8219) 2019-10-21 20:25:35 +03:00
mailers DEV: pluck_first 2019-10-21 12:08:20 +01:00
models FIX: Load user model when some attributes are missing. 2019-10-21 21:05:25 +03:00
serializers FEATURE: Include image url in topic serializer 2019-10-21 22:02:49 -06:00
services DEV: pluck_first 2019-10-21 12:08:20 +01:00
views Add digest email template classes for popular post section 2019-10-16 11:22:33 -04:00