Skip to content

Commit

Permalink
PSHB base_url bug
Browse files Browse the repository at this point in the history
FreshRSS#1227
Bug if base_url does not end with /
  • Loading branch information
Alkarex committed Aug 28, 2016
1 parent 961407b commit 1a0f11e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ function pubSubHubbubSubscribe($state) {
Minz_Log::warning('Invalid JSON for PubSubHubbub: ' . $this->url);
return false;
}
$callbackUrl = checkUrl(FreshRSS_Context::$system_conf->base_url . 'api/pshb.php?k=' . $hubJson['key']);
$callbackUrl = checkUrl(Minz_Request::getBaseUrl() . '/api/pshb.php?k=' . $hubJson['key']);
if ($callbackUrl == '') {
Minz_Log::warning('Invalid callback for PubSubHubbub: ' . $this->url);
return false;
Expand Down

0 comments on commit 1a0f11e

Please sign in to comment.