← All changes
|
Modules/Integrations/FluentCart/Http/Controllers/PaywallController.php
+1
-1
2.9.0
→
2.10.0
View file →
| @@ -140,9 +140,9 @@ | ||
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | public function searchProduct(Request $request) |
| 143 | 143 | { |
| 144 | - $search = trim($request->getSafe('search')); | |
| 144 | + $search = trim((string) $request->getSafe('search', 'sanitize_text_field', '')); | |
| 145 | 145 | |
| 146 | 146 | $products = Product::query() |
| 147 | 147 | ->select('ID', 'post_title') |
| 148 | 148 | ->when($search !== '', function ($query) use ($search) { |