Skip to content

Fix "Call to a member function isDownloadAllowed() on null" in dl.php#194

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

Fix "Call to a member function isDownloadAllowed() on null" in dl.php#194
michael-o merged 1 commit intowebsvnphp:masterfrom
danielmarschall:patch-2

Conversation

@danielmarschall
Copy link
Copy Markdown
Contributor

@danielmarschall danielmarschall commented 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 for "$rep == null" before accessing "$rep->..." . The only problems were filedetails.php (#192) and dl.php (#194) which are now fixed.

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 michael-o merged commit f60054d into websvnphp:master Sep 30, 2023
@danielmarschall danielmarschall deleted the patch-2 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