Still there had been notices - must have a good camouflage
This commit is contained in:
parent
b028de3aa3
commit
380eeaab88
4 changed files with 12 additions and 4 deletions
|
|
@ -133,6 +133,10 @@ class Proxy extends BaseModule
|
|||
$direct_cache = false;
|
||||
}
|
||||
|
||||
if (empty($_REQUEST['url'])) {
|
||||
System::httpExit(400, ["title" => L10n::t('Bad Request.')]);
|
||||
}
|
||||
|
||||
if (!$direct_cache) {
|
||||
$urlhash = 'pic:' . sha1($_REQUEST['url']);
|
||||
|
||||
|
|
|
|||
|
|
@ -792,7 +792,7 @@ class Image
|
|||
|
||||
try {
|
||||
if (function_exists("getimagesizefromstring")) {
|
||||
$data = getimagesizefromstring($img_str);
|
||||
$data = @getimagesizefromstring($img_str);
|
||||
} else {
|
||||
$tempfile = tempnam(get_temppath(), "cache");
|
||||
|
||||
|
|
|
|||
|
|
@ -2407,8 +2407,11 @@ class DFRN
|
|||
break;
|
||||
case "enclosure":
|
||||
$enclosure = $href;
|
||||
if (strlen($item["attach"])) {
|
||||
|
||||
if (!empty($item["attach"])) {
|
||||
$item["attach"] .= ",";
|
||||
} else {
|
||||
$item["attach"] = "";
|
||||
}
|
||||
|
||||
$item["attach"] .= '[attach]href="' . $href . '" length="' . $length . '" type="' . $type . '" title="' . $title . '"[/attach]';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue