diff --git a/app/Http/Controllers/MicropubMediaController.php b/app/Http/Controllers/MicropubMediaController.php index c965167e..22df7575 100644 --- a/app/Http/Controllers/MicropubMediaController.php +++ b/app/Http/Controllers/MicropubMediaController.php @@ -82,7 +82,10 @@ class MicropubMediaController extends Controller if (request()->has('q')) { return response()->json([ 'error' => 'invalid_request', - 'error_description' => 'This server does not know how to handle this q parameter (' . request()->input('q') . ')', + 'error_description' => sprintf( + 'This server does not know how to handle this q parameter (%s)', + request()->input('q') + ), ], 400); }