From 64107422a054a2b5a00fadc1f8a24b4c7bf18396 Mon Sep 17 00:00:00 2001 From: Nate Date: Thu, 12 Dec 2019 14:38:07 -0700 Subject: [PATCH] Functions: Fix th_order_by function for multilingual headings. --- resources/functions.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/functions.php b/resources/functions.php index 408b700e2d..511f4bbd4a 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -378,7 +378,6 @@ if (is_uuid($app_uuid) > 0) { $app_uuid = "&app_uuid=".$app_uuid; } // accomodate need to pass app_uuid where necessary (inbound/outbound routes lists) $field_name = preg_replace("#[^a-zA-Z0-9_]#", "", $field_name); - $column_title = preg_replace("#[^a-zA-Z0-9_]#", "", $column_title); $field_value = preg_replace("#[^a-zA-Z0-9_]#", "", $field_value); $sanitized_parameters = ''; @@ -421,11 +420,11 @@ } if ($order == "asc") { $description .= 'sort(ascending)'; - $html .= "".urlencode($column_title).""; + $html .= "".escape($column_title).""; } else { $description .= 'sort(descending)'; - $html .= "".urlencode($column_title).""; + $html .= "".escape($column_title).""; } $html .= ""; return $html;