Skip to content

Commit

Permalink
Fixed urlencoded filter values issue
Browse files Browse the repository at this point in the history
  • Loading branch information
apmuthu committed Jan 26, 2019
1 parent 0ce4119 commit cadb857
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ajaxCRUD.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,7 @@ function showTable(){

if (isset($_REQUEST[$field]) && $_REQUEST[$field] != '' && ($action != 'add' && $action != 'delete' && $action != 'update' && $action != 'upload' && $action != 'delete_file')){
$filter_field = $field;
$filter_value = $_REQUEST[$field];
$filter_value = $_REQUEST[$field]; // URIDecoded in JS
if ($this->exactSearchField[$filter_field]){
//exact search (is set by
$filter_where_clause = "WHERE $filter_field = \"$filter_value\"";
Expand Down Expand Up @@ -1507,7 +1507,7 @@ function showTable(){

$total_records = $Paging->myRecordCount($sql);//count records
$totalpage = $Paging->processPaging($this->limit,$pageid);
$rows = $Paging->startPaging($sql);//get records in the databse
$rows = $Paging->startPaging($sql);//get records in the database
$links = $Paging->pageLinks(basename($_SERVER['PHP_SELF']));//1234 links
unset($Paging);
}
Expand Down Expand Up @@ -1696,7 +1696,7 @@ function showTable(){
if (isset($this->allowed_values[$field]) && is_array($this->allowed_values[$field])){
foreach ($this->allowed_values[$field] as $list){
if (is_array($list)){
$list_val = $list[0];
$list_val = urldecode($list[0]); // manual urldecode as no js here
$list_option = $list[1];
}
else{
Expand Down

0 comments on commit cadb857

Please sign in to comment.