Skip to content

Fix "Call to a member function logsShowChanges() on null" on log.php#192

Merged
michael-o merged 1 commit intowebsvnphp:masterfrom
danielmarschall:patch-1
Sep 30, 2023
Merged

Fix "Call to a member function logsShowChanges() on null" on log.php#192
michael-o merged 1 commit intowebsvnphp:masterfrom
danielmarschall:patch-1

Conversation

@danielmarschall
Copy link
Copy Markdown
Contributor

Fixes the following bug:
Call
.../websvn/log.php?repname=xxx&path=%2F
where xxx is a non-existing repo
Results in Fatal error: Uncaught Error: Call to a member function logsShowChanges() on null in .../log.php:41

Fixes the following bug:
Call 
.../websvn/log.php?repname=xxx&path=%2F
where xxx is a non-existing repo
Results in Fatal error: Uncaught Error: Call to a member function logsShowChanges() on null in .../log.php:41
Copy link
Copy Markdown
Member

@michael-o michael-o left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@michael-o michael-o merged commit e3e571e into websvnphp:master Sep 30, 2023
danielmarschall added a commit to danielmarschall/websvn that referenced this pull request Sep 30, 2023
Fixes the following bug:
Calling dl.php?repname=xxx where xxx is a non-existing repo causes the error "Call to a member function isDownloadAllowed() on null" .

Note: I have now verified that all PHP files in the root directory correctly check if "$rep == null" before accessing "$rep->..." . The only errors where filedetails.php (websvnphp#192) and dl.php (websvnphp#194)
michael-o pushed a commit that referenced this pull request Sep 30, 2023
Fixes the following bug:
Calling dl.php?repname=xxx where xxx is a non-existing repo causes the error "Call to a member function isDownloadAllowed() on null" .

Note: I have now verified that all PHP files in the root directory correctly check if "$rep == null" before accessing "$rep->..." . The only errors where filedetails.php (#192) and dl.php (#194)
@danielmarschall danielmarschall deleted the patch-1 branch September 30, 2023 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants