From edf446fae669f3370609f5a955c3d6c863a93524 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 26 Jan 2025 22:00:21 +0200 Subject: feat: Replace sessionStorage with (custom) cookieStorage --- controllers/list.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'controllers/list.php') diff --git a/controllers/list.php b/controllers/list.php index 0ec33d1..2dea9ec 100644 --- a/controllers/list.php +++ b/controllers/list.php @@ -4,11 +4,12 @@ use Database; use Exception; function on_post() { + global $TOKEN; global $list_status; $list_status = ""; try { - $uid = Database\Cookie::fromDB($_POST['token'])->UID; + $uid = Database\Cookie::fromDB($TOKEN)->UID; Database\ArchiveList::create($uid, $_POST["name"], $_POST["description"]); } catch(Exception $e) { -- cgit v1.2.3