From b6eb1e668c7c3298d3d42703cb782a579d9b3128 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Wed, 18 May 2016 15:12:49 +0200 Subject: [PATCH] fixing get_remote_ip() quoting --- bureau/class/m_mem.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bureau/class/m_mem.php b/bureau/class/m_mem.php index fb84f3c4..ab5bdcf0 100644 --- a/bureau/class/m_mem.php +++ b/bureau/class/m_mem.php @@ -142,9 +142,9 @@ class m_mem { // End AuthIP if ($restrictip) { - $ip = "'" . get_remote_ip() . "'"; + $ip = get_remote_ip(); } else { - $ip = "''"; + $ip = ""; } /* Close sessions that are more than 2 days old. */ $db->query("DELETE FROM sessions WHERE DATE_ADD(ts,INTERVAL 2 DAY)