diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php
index 65e6facc93..1daffb5538 100755
--- a/pandora_console/include/functions_ui.php
+++ b/pandora_console/include/functions_ui.php
@@ -2041,6 +2041,10 @@ function ui_pagination(
'disable_user',
'delete_user',
];
+
+ // Check if url has blankspace and replace it.
+ preg_replace('/\ /', '%20', $url);
+
$url = explode('&', $url);
$finalUrl = [];
@@ -2118,7 +2122,7 @@ function ui_pagination(
$output .= "';
} else {
- $output .= "';
+ $output .= "';
}
}
@@ -4009,7 +4013,7 @@ function ui_get_url_refresh($params=false, $relative=true, $add_post=true)
$url .= $key.'['.$k.']='.$v.'&';
}
} else {
- $url .= $key.'='.io_safe_input($value).'&';
+ $url .= $key.'='.io_safe_input(rawurlencode($value)).'&';
}
}