Update error message files, increment version
This commit is contained in:
parent
65b02f3b8d
commit
b9f2604bb5
5 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ public function guestbookPost(Request $request) {
|
|||
$matching_bans = DB::select('SELECT reason FROM guestbook_bans WHERE ip_address = ?', array($request->ip()));
|
||||
|
||||
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(
|
||||
|
|
|
@ -21,7 +21,7 @@ public function handle(Request $request, Closure $next): Response
|
|||
|
||||
if (Cache::has($cacheKey)) {
|
||||
// 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
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
*/
|
||||
|
||||
'name' => env('APP_NAME', 'diskfloppy.me'),
|
||||
'version' => '5.4.4',
|
||||
'version' => '5.4.5',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue