mirror of
https://github.com/friendica/friendica
synced 2024-11-18 13:43:42 +00:00
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
|
@ -122,11 +122,12 @@ function contacts_init(App $a)
|
||||||
|
|
||||||
function contacts_batch_actions(App $a)
|
function contacts_batch_actions(App $a)
|
||||||
{
|
{
|
||||||
$contacts_id = $_POST['contact_batch'];
|
if (empty($_POST['contact_batch']) || !is_array($_POST['contact_batch'])) {
|
||||||
if (!is_array($contacts_id)) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$contacts_id = $_POST['contact_batch'];
|
||||||
|
|
||||||
$orig_records = q("SELECT * FROM `contact` WHERE `id` IN (%s) AND `uid` = %d AND `self` = 0",
|
$orig_records = q("SELECT * FROM `contact` WHERE `id` IN (%s) AND `uid` = %d AND `self` = 0",
|
||||||
implode(",", $contacts_id),
|
implode(",", $contacts_id),
|
||||||
intval(local_user())
|
intval(local_user())
|
||||||
|
|
|
@ -133,6 +133,10 @@ class Proxy extends BaseModule
|
||||||
$direct_cache = false;
|
$direct_cache = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (empty($_REQUEST['url'])) {
|
||||||
|
System::httpExit(400, ["title" => L10n::t('Bad Request.')]);
|
||||||
|
}
|
||||||
|
|
||||||
if (!$direct_cache) {
|
if (!$direct_cache) {
|
||||||
$urlhash = 'pic:' . sha1($_REQUEST['url']);
|
$urlhash = 'pic:' . sha1($_REQUEST['url']);
|
||||||
|
|
||||||
|
|
|
@ -792,7 +792,7 @@ class Image
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (function_exists("getimagesizefromstring")) {
|
if (function_exists("getimagesizefromstring")) {
|
||||||
$data = getimagesizefromstring($img_str);
|
$data = @getimagesizefromstring($img_str);
|
||||||
} else {
|
} else {
|
||||||
$tempfile = tempnam(get_temppath(), "cache");
|
$tempfile = tempnam(get_temppath(), "cache");
|
||||||
|
|
||||||
|
|
|
@ -2407,8 +2407,11 @@ class DFRN
|
||||||
break;
|
break;
|
||||||
case "enclosure":
|
case "enclosure":
|
||||||
$enclosure = $href;
|
$enclosure = $href;
|
||||||
if (strlen($item["attach"])) {
|
|
||||||
|
if (!empty($item["attach"])) {
|
||||||
$item["attach"] .= ",";
|
$item["attach"] .= ",";
|
||||||
|
} else {
|
||||||
|
$item["attach"] = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
$item["attach"] .= '[attach]href="' . $href . '" length="' . $length . '" type="' . $type . '" title="' . $title . '"[/attach]';
|
$item["attach"] .= '[attach]href="' . $href . '" length="' . $length . '" type="' . $type . '" title="' . $title . '"[/attach]';
|
||||||
|
|
Loading…
Reference in a new issue