From 0c0c4c5f3654461c387e254020eaa99288da92c5 Mon Sep 17 00:00:00 2001 From: Nate Date: Tue, 31 Dec 2019 07:19:51 -0700 Subject: [PATCH] Variables/Modules: Replace url encoding in select box options. --- app/vars/vars.php | 2 +- resources/functions.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/vars/vars.php b/app/vars/vars.php index c92c9bc520..9d77655dea 100644 --- a/app/vars/vars.php +++ b/app/vars/vars.php @@ -233,7 +233,7 @@ echo $text['label-'.$row['var_enabled']]; } echo " \n"; - echo " ".escape($row['var_description'])."\n"; + echo " ".escape(base64_decode($row['var_description']))."\n"; if (permission_exists('var_edit') && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') { echo " \n"; echo button::create(['type'=>'button','title'=>$text['button-edit'],'icon'=>$_SESSION['theme']['button_icon_edit'],'link'=>$list_row_url]); diff --git a/resources/functions.php b/resources/functions.php index 74a8a11ca3..2dd01219ed 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -301,9 +301,9 @@ $html = "\n"; $html .= "\n"; - $html .= "
\n"; + $html .= "\n"; $html .= "\n"; - $html .= "\n"; $html .= "\n"; $sql = "select distinct(".$field_name.") as ".$field_name." "; @@ -313,7 +313,7 @@ if (is_array($result) && @sizeof($result) != 0) { foreach($result as $field) { if (strlen($field[$field_name]) > 0) { - $html .= "\n"; + $html .= "\n"; } } }