allow other destinations according to protocol
This commit is contained in:
parent
e33b6e0b5a
commit
4b356e59ec
2 changed files with 6 additions and 4 deletions
2
boot.php
2
boot.php
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
|
|
||||||
define ( 'FRIENDIKA_VERSION', '2.1.935' );
|
define ( 'FRIENDIKA_VERSION', '2.1.936' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.2' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.2' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1045 );
|
define ( 'DB_UPDATE_VERSION', 1045 );
|
||||||
|
|
||||||
|
|
|
@ -424,10 +424,9 @@ function dfrn_poll_content(&$a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(($type === 'profile') && (strlen($sec))) {
|
if(($type === 'profile') && (strlen($sec))) {
|
||||||
|
|
||||||
// URL reply
|
// URL reply
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if($dfrn_version < 2.2) {
|
if($dfrn_version < 2.2) {
|
||||||
$s = fetch_url($r[0]['poll']
|
$s = fetch_url($r[0]['poll']
|
||||||
. '?dfrn_id=' . $encrypted_id
|
. '?dfrn_id=' . $encrypted_id
|
||||||
|
@ -455,9 +454,12 @@ function dfrn_poll_content(&$a) {
|
||||||
$dest = $a->get_baseurl() . '/photos/' . $profile;
|
$dest = $a->get_baseurl() . '/photos/' . $profile;
|
||||||
break;
|
break;
|
||||||
case 'status':
|
case 'status':
|
||||||
default:
|
case '':
|
||||||
$dest = $a->get_baseurl() . '/profile/' . $profile;
|
$dest = $a->get_baseurl() . '/profile/' . $profile;
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
$dest = $destination_url;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
logger("dfrn_poll: sec profile: " . $s, LOGGER_DATA);
|
logger("dfrn_poll: sec profile: " . $s, LOGGER_DATA);
|
||||||
|
|
Loading…
Reference in a new issue