From a36e43ea1168ac2e227b0acdfba1dbed19f77d0a Mon Sep 17 00:00:00 2001 From: swag Date: Mon, 4 Apr 2022 14:02:05 -0400 Subject: [PATCH] Whoopsie... Remember to run your unit tests before comitting, folks --- guestbook-ng.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guestbook-ng.pl b/guestbook-ng.pl index a337cbb..bde507f 100755 --- a/guestbook-ng.pl +++ b/guestbook-ng.pl @@ -50,7 +50,7 @@ under sub ($c) { # Delete this since I was supposed to be using 'expires' instead # of 'expiration'; the difference is outlined here: # https://docs.mojolicious.org/Mojolicious/Controller#session - delete $c->session('expiration') if $c->session('expiration'); + delete $c->session->{'expiration'} if $c->session('expiration'); $c->stash(status => 403) if $c->flash('error');