mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-07 00:48:55 +00:00
fromgplus: Initial working version
This commit is contained in:
parent
ccac72ee0b
commit
c8b2b1ca85
3 changed files with 265 additions and 76 deletions
|
@ -100,7 +100,7 @@ function privacy_image_cache_init() {
|
|||
|
||||
$img_str = fetch_url($_REQUEST['url'],true);
|
||||
|
||||
$tempfile = tempnam("", "cache");
|
||||
$tempfile = tempnam(get_config("system","temppath"), "cache");
|
||||
file_put_contents($tempfile, $img_str);
|
||||
$mime = image_type_to_mime_type(exif_imagetype($tempfile));
|
||||
unlink($tempfile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue