mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-13 03:48:49 +00:00
error checking in retriever
This commit is contained in:
parent
f4edb98bca
commit
054c030c1d
1 changed files with 3 additions and 0 deletions
|
@ -241,6 +241,9 @@ function retrieve_dataurl_resource($resource) {
|
||||||
*/
|
*/
|
||||||
function retrieve_resource($resource) {
|
function retrieve_resource($resource) {
|
||||||
$components = parse_url($resource['url']);
|
$components = parse_url($resource['url']);
|
||||||
|
if (!$components) {
|
||||||
|
Logger::warning('retrieve_resource: URL ' . $resource['url'] . ' could not be parsed');
|
||||||
|
}
|
||||||
if ($components['scheme'] == "data") {
|
if ($components['scheme'] == "data") {
|
||||||
return retrieve_dataurl_resource($resource);
|
return retrieve_dataurl_resource($resource);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue