Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions web/application/controllers/ums.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,15 @@ function postActivityLog() {
*/
function uploadLog() {
$this -> load -> model('servicepublicclass/uploadlogpublic', 'uploadlogpublic');
if (!isset($_POST["content"])) {
$ret = array('flag' => -3, 'msg' => 'Invalid content.');
echo json_encode($ret);
return;
if(isset($_POST ["content"])){
# foreach($_POST as $key => $value){
# log_message ( "error",'upload log ' . $key . '=' . $value);
# }
$encoded_content = $_POST ["content"];
}else{
if ( !isset( $HTTP_RAW_POST_DATA ) ) $HTTP_RAW_POST_DATA =file_get_contents( 'php://input' );
$encoded_content = gzinflate( substr($HTTP_RAW_POST_DATA,10,-8) );
}
$encoded_content = $_POST['content'];
log_message("debug", $encoded_content);
$content = json_decode($encoded_content);
$uploadlog = new uploadlogpublic();
Expand Down