From b55b1021a2b0cb53b2f18622207f659dcfb8ba77 Mon Sep 17 00:00:00 2001 From: adam Date: Sat, 13 Feb 2021 22:17:50 +0200 Subject: returns something' --- php/share.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'php/share.php') diff --git a/php/share.php b/php/share.php index 3122162..28d00f8 100644 --- a/php/share.php +++ b/php/share.php @@ -27,12 +27,14 @@ if($_SERVER["REQUEST_METHOD"] == "POST") } else { - http_response_code(409); +// http_response_code(409); error_log("someone gave wrong premmissions =".$premissions."! This could be an attack"); - exit(1); +// exit(1); } - $share_link=create_share_link($path,$filename,$password,$user,$can_read,$can_write); + //$share_link=create_share_link($path,$filename,$password,$user,$can_read,$can_write); + $share_link=create_share_link($path,$filename,$password,$user,true,true); + if($share_link==NULL) { -- cgit v1.2.3