aboutsummaryrefslogtreecommitdiff
path: root/app/Http/Controllers/GuestbookController.php
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2023-07-19 01:58:32 +0100
committerFrankie B <git@diskfloppy.me>2023-07-19 01:58:32 +0100
commitfe0765795aae52df0edf064ce4add55d6edb0ed9 (patch)
tree7303aa0575cfd694430a7505cee976a8ce78d6f3 /app/Http/Controllers/GuestbookController.php
parentfb045348cf4c72a2f523b6a0ce360b40d4d60ff3 (diff)
Update table names to new format
Diffstat (limited to 'app/Http/Controllers/GuestbookController.php')
-rw-r--r--app/Http/Controllers/GuestbookController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Http/Controllers/GuestbookController.php b/app/Http/Controllers/GuestbookController.php
index 12b1c7f..c7aa88e 100644
--- a/app/Http/Controllers/GuestbookController.php
+++ b/app/Http/Controllers/GuestbookController.php
@@ -16,13 +16,13 @@ class GuestbookController extends Controller {
'message' => 'required'
]);
- $matching_bans = DB::select('SELECT reason FROM guestbook_bans WHERE ip_address = ?', array($request->ip()));
+ $matching_bans = DB::select('SELECT reason FROM guestbook__bans WHERE ip_address = ?', array($request->ip()));
if (count($matching_bans) > 0 ) {
return view('errors.guestbook-ipban')->with('reason', $matching_bans[0]->reason);
}
- DB::insert('INSERT INTO guestbook_entries (name, timestamp, ip_address, agent, message) values (?, ?, ?, ?, ?)', array(
+ DB::insert('INSERT INTO guestbook__entries (name, timestamp, ip_address, agent, message) values (?, ?, ?, ?, ?)', array(
htmlspecialchars($request->get('name')),
time(),
$request->ip(),