mirror of
https://github.com/flyimg/flyimg.git
synced 2026-04-25 09:45:50 +03:00
[PR #28] [MERGED] Put back exception response for forbidden domains. #845
Labels
No labels
Docs
Docs
Docs
Security
UnitTest
bug
dependencies
duplicate
enhancement
enhancement
enhancement
hacktoberfest
help wanted
invalid
pull-request
question
stale
version 1
version 2
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flyimg#845
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?
📋 Pull Request Information
Original PR: https://github.com/flyimg/flyimg/pull/28
Author: @baamenabar
Created: 1/22/2017
Status: ✅ Merged
Merged: 1/23/2017
Merged by: @sadok-f
Base:
master← Head:forbid-domains📝 Commits (1)
edd3cadput back exeption response for forbiden domains📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
src/Core/Controller/DefaultController.php(+2 -0)📄 Description
I was getting errors when trying to get an image from a restricted domain with
restricted_domains: trueSee screenshot:

It was allowing the app to try and create a file that was not there. Also trying to get the image's info when requesting with
refresh:1and failing with the previous error.If the resource was requested without refresh it returned and empty
http 200🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.