From 23cca6ee6d3f1fe3103c82fc057c66fc0deddaf2 Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Thu, 24 Sep 2015 18:28:11 +0000 Subject: [PATCH] Switch to UTF8 when in JS/AJAX mode --- src/InfoCon/account/list.wml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/InfoCon/account/list.wml b/src/InfoCon/account/list.wml index f0fc1e8..1f6613c 100644 --- a/src/InfoCon/account/list.wml +++ b/src/InfoCon/account/list.wml @@ -33,14 +33,17 @@ function filter_account() } if (strlen($_POST['category']) && strlen(trim($_POST['category']))) { + if (!empty($_POST['ajax'])) $_POST['category'] = utf8_decode($_POST['category']); $where[] = sprintf("category = '%s'", $_POST['category']); } if (strlen($_POST['keyword']) && strlen(trim($_POST['keyword']))) { + if (!empty($_POST['ajax'])) $_POST['keyword'] = utf8_decode($_POST['keyword']); $where[] = sprintf("descr ~* '%s'", $_POST['keyword']); } if (strlen($_POST['from_to']) && strlen(trim($_POST['from_to']))) { + if (!empty($_POST['ajax'])) $_POST['from_to'] = utf8_decode($_POST['from_to']); $where[] = sprintf("from_to = '%s'", $_POST['from_to']); } -- 2.20.1