Skip to content

Commit 4c5eabe

Browse files
author
Kinjal Dixit
committed
corrects post implementation
1 parent 7f93e6a commit 4c5eabe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/libraries/REST_Controller.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ public function post($key = NULL, $xss_clean = TRUE)
801801
return $this->_post_args;
802802
}
803803

804-
return $this->input->post($key, $xss_clean);
804+
return array_key_exists($key, $this->_post_args) ? $this->_xss_clean($this->_post_args[$key], $xss_clean) : FALSE;
805805
}
806806

807807
/**

0 commit comments

Comments
 (0)