]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/AuditLogController.php
Search IP by partial-equal
[bookstack] / app / Http / Controllers / AuditLogController.php
index ab419cc45c8255a90c562db4987740bd4c2ddd75..7cab6540ee4394e7ac4cde5990346ae165f968ad 100644 (file)
@@ -46,7 +46,7 @@ class AuditLogController extends Controller
             $query->where('created_at', '<=', $listDetails['date_to']);
         }
         if ($listDetails['ip']) {
-            $query->where('ip', '=', $listDetails['ip']);
+            $query->where('ip', 'like', $listDetails['ip'] . "%");
         }
 
         $activities = $query->paginate(100);