Skip to content

Commit

Permalink
Fix broken log messages
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Xenthys committed Jun 5, 2019
1 parent 05ed010 commit bbeea0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sharexen.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ function log_request(&$data)

$url = @$data['url'];
$user = @$data['username'];
$endpoint = @$data['endpoint'];

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

Expand Down Expand Up @@ -760,7 +761,7 @@ function info_endpoint(&$data)
}
}

define('VERSION', '2.3.0');
define('VERSION', '2.3.1');
define('SOURCE', 'https://github.com/Xenthys/ShareXen');

$data = [
Expand Down

0 comments on commit bbeea0b

Please sign in to comment.