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;