Skip to content

Firefly III: a personal finances manager

Use safe functions.

James Cole97d55cb5f611
diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php
index 3d6b847a34..783109a028 100644
--- a/app/Http/Controllers/SearchController.php
+++ b/app/Http/Controllers/SearchController.php
@@ -32,6 +32,7 @@ use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
use Illuminate\View\View;
use Throwable;
+use function Safe\mb_convert_encoding;
/**
* Class SearchController.
diff --git a/app/Support/Search/QueryParser/QueryParser.php b/app/Support/Search/QueryParser/QueryParser.php
index fdc8fb8fee..b2af829b66 100644
--- a/app/Support/Search/QueryParser/QueryParser.php
+++ b/app/Support/Search/QueryParser/QueryParser.php
@@ -29,6 +29,7 @@ use LogicException;
use Safe\Exceptions\PcreException;
use SensitiveParameter;
use function Safe\preg_split;
+use function Safe\mb_convert_encoding;
/**
* Single-pass parser that processes query strings into structured nodes.