Download vendor: Update HTTP download functions #25
Labels
No labels
Bug
Feature Addition
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
bookstack/system-cli#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Default to using CURL functions if curl is enabled, otherwise fallback to direct fopen.
CURL would generally be better to use, but it might not exist.
fopen is more available, but http/URL usage may be blocked by config.
Relevant lines:
$targetFile = @fopen($targetUrl, 'rb');if ($targetFile === false) {throw new CommandError("Failed to download ZIP file from $targetUrl");}Based on input from Ionys320: https://github.com/BookStackApp/BookStack/issues/5538#issuecomment-3819764070