From f055e0700b1bb4a1b2f5f4eb56941d7e31dee894 Mon Sep 17 00:00:00 2001
From: agree <37550360+greenbea@users.noreply.github.com>
Date: Thu, 12 Nov 2020 16:14:08 -0500
Subject: [PATCH] Fix order by on outbound routes
---
resources/functions.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/resources/functions.php b/resources/functions.php
index 65bcbdf6f7..4e5ba4d647 100644
--- a/resources/functions.php
+++ b/resources/functions.php
@@ -393,7 +393,7 @@
//html table header order by
function th_order_by($field_name, $column_title, $order_by, $order, $app_uuid = '', $css = '', $http_get_params = '', $description = '') {
global $text;
- if (is_uuid($app_uuid) > 0) { $app_uuid = "&app_uuid=".$app_uuid; } // accomodate need to pass app_uuid where necessary (inbound/outbound routes lists)
+ if (is_uuid($app_uuid) > 0) { $app_uuid = "&app_uuid=".urlencode($app_uuid); } // accomodate need to pass app_uuid where necessary (inbound/outbound routes lists)
$field_name = preg_replace("#[^a-zA-Z0-9_]#", "", $field_name);
$field_value = preg_replace("#[^a-zA-Z0-9_]#", "", $field_value);
@@ -440,11 +440,11 @@
}
if ($order == "asc") {
$description .= $text['label-order'].': '.$text['label-ascending'];
- $html .= "".escape($column_title)."";
+ $html .= "".escape($column_title)."";
}
else {
$description .= $text['label-order'].': '.$text['label-descending'];
- $html .= "".escape($column_title)."";
+ $html .= "".escape($column_title)."";
}
$html .= "";
return $html;