Skip to content

Commit bbeea0b

Browse files
committed
Fix broken log messages
The $endpoint variable in the log function was undefined, thus completely omitting to log the endpoint, and throwing warning. Version bumped to 2.3.1
1 parent 05ed010 commit bbeea0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sharexen.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ function log_request(&$data)
301301

302302
$url = @$data['url'];
303303
$user = @$data['username'];
304+
$endpoint = @$data['endpoint'];
304305

305306
$msg = $user ? "Authenticated user $user" : 'Unauthenticated user';
306307

@@ -760,7 +761,7 @@ function info_endpoint(&$data)
760761
}
761762
}
762763

763-
define('VERSION', '2.3.0');
764+
define('VERSION', '2.3.1');
764765
define('SOURCE', 'https://github.com/Xenthys/ShareXen');
765766

766767
$data = [

0 commit comments

Comments
 (0)