mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Fixed url with blakspace on pagination
This commit is contained in:
parent
7f8324266d
commit
6931e15dd2
@ -2041,6 +2041,10 @@ function ui_pagination(
|
|||||||
'disable_user',
|
'disable_user',
|
||||||
'delete_user',
|
'delete_user',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// Check if url has   blankspace and replace it.
|
||||||
|
preg_replace('/\ /', '%20', $url);
|
||||||
|
|
||||||
$url = explode('&', $url);
|
$url = explode('&', $url);
|
||||||
|
|
||||||
$finalUrl = [];
|
$finalUrl = [];
|
||||||
@ -2118,7 +2122,7 @@ function ui_pagination(
|
|||||||
$output .= "<a class='pagination-arrows ".$other_class." offset_0'
|
$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>';
|
href='javascript: ".$script_modified.";'>".html_print_image('images/go_first_g.png', true, ['class' => 'bot']).'</a>';
|
||||||
} else {
|
} 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.'&';
|
$url .= $key.'['.$k.']='.$v.'&';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$url .= $key.'='.io_safe_input($value).'&';
|
$url .= $key.'='.io_safe_input(rawurlencode($value)).'&';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user