Re-fix RCE issue in SearchController
Re-fix RCE issue in SearchController

Applies the fix of #415bb822 to this file.
See PR #1056

(This fix is already in `next`, but I'm worried it might
- get lost because the fix is in a different file, or
- cause an avoidable merge conflict when this branch is eventually merged into master.)

MushroomObserver/mushroom-observer,MushroomObserver/mushroom-observer,MushroomObserver/mushroom-observer,MushroomObserver/mushroom-observer,MushroomObserver/mushroom-observer,MushroomObserver/mushroom-observer,MushroomObserver/mushroom-observer