Fixed url with blakspace on pagination
This commit is contained in:
parent
7f8324266d
commit
6931e15dd2
|
@ -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 .= "<a class='pagination-arrows ".$other_class." offset_0'
|
||||
href='javascript: ".$script_modified.";'>".html_print_image('images/go_first_g.png', true, ['class' => 'bot']).'</a>';
|
||||
} else {
|
||||
$output .= "<a class='pagination-arrows ".$other_class." offset_0' href='".$url.'&'.$offset_name."=0'>".html_print_image('images/go_first_g.png', true, ['class' => 'bot']).'</a>';
|
||||
$output .= "<a class='pagination-arrows ".$other_class." offset_0' href='".io_safe_output($url).'&'.$offset_name."=0'>".html_print_image('images/go_first_g.png', true, ['class' => 'bot']).'</a>';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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)).'&';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue