From 55197cf830f8ca926ab284656f2c2487505f313e Mon Sep 17 00:00:00 2001 From: Akkadius Date: Sat, 20 Oct 2018 21:07:45 -0500 Subject: [PATCH] Add fix for data buckets deletion --- zone/data_bucket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/data_bucket.cpp b/zone/data_bucket.cpp index d1bdcd83c..67c1e04c4 100644 --- a/zone/data_bucket.cpp +++ b/zone/data_bucket.cpp @@ -107,7 +107,7 @@ uint64 DataBucket::DoesBucketExist(std::string bucket_key) { */ bool DataBucket::DeleteData(std::string bucket_key) { std::string query = StringFormat( - "DELETE FROM `data_buckets` WHERE `key` = '%s' AND (`expires` > %lld OR `expires` = 0)", + "DELETE FROM `data_buckets` WHERE `key` = '%s'", EscapeString(bucket_key).c_str() );