Update error message files, increment version

This commit is contained in:
floppydiskette 2023-07-16 15:30:11 +01:00
parent 65b02f3b8d
commit b9f2604bb5
Signed by: fwoppydwisk
SSH key fingerprint: SHA256:yXxSuswzElTluzXjKgvZK0bDGhTaj/XbArybRDr+Mfs
5 changed files with 3 additions and 3 deletions

View file

@ -19,7 +19,7 @@ public function guestbookPost(Request $request) {
$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 ) { if (count($matching_bans) > 0 ) {
return view('errors.guestbook-ban')->with('reason', $matching_bans[0]->reason); 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(

View file

@ -21,7 +21,7 @@ public function handle(Request $request, Closure $next): Response
if (Cache::has($cacheKey)) { if (Cache::has($cacheKey)) {
// If the cache key exists, the IP has submitted an entry within the last hour // If the cache key exists, the IP has submitted an entry within the last hour
return response()->view('errors.ratelimit-guestbook', [], 429); return response()->view('errors.guestbook-ratelimit', [], 429);
} }
// Add the IP address to the cache and set the expiration time to one hour // Add the IP address to the cache and set the expiration time to one hour

View file

@ -17,7 +17,7 @@
*/ */
'name' => env('APP_NAME', 'diskfloppy.me'), 'name' => env('APP_NAME', 'diskfloppy.me'),
'version' => '5.4.4', 'version' => '5.4.5',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------