1
0
Fork 0

Removed notices that revealed themselfes over night ... (#5645)

* Removed notices that revealed themselfes over night ...

* And more notices removed that occured over night

* One more ..

* Some more notices of the day ...
This commit is contained in:
Michael Vogel 2018-08-21 17:35:09 +02:00 committed by Tobias Diekershoff
commit 54aee2aaa7
10 changed files with 43 additions and 22 deletions

View file

@ -480,6 +480,12 @@ function dfrn_poll_content(App $a)
}
if (($type === 'profile') && (strlen($sec))) {
// heluecht: I don't know why we don't fail immediately when the user or contact hadn't been found.
// Since it doesn't make sense to continue from this point on, we now fail here. This should be safe.
if (!DBA::isResult($r)) {
System::httpExit(404, ["title" => L10n::t('Page not found.')]);
}
// URL reply
if ($dfrn_version < 2.2) {
$s = Network::fetchUrl($r[0]['poll']

View file

@ -16,9 +16,7 @@ use Friendica\Util\Proxy as ProxyUtils;
function follow_post(App $a)
{
if (!local_user()) {
notice(L10n::t('Permission denied.'));
goaway($_SESSION['return_url']);
// NOTREACHED
System::httpExit(403, ['title' => L10n::t('Access denied.')]);
}
if (isset($_REQUEST['cancel'])) {