allow redirect to login page when calling external feed subscription url (using bookmarklet, for example) (refs #344)
This commit is contained in:
parent
11adc49e71
commit
d0f7338009
10
backend.php
10
backend.php
|
@ -62,8 +62,14 @@
|
||||||
$op != "rss" && $op != "getUnread" && $op != "getProfiles" &&
|
$op != "rss" && $op != "getUnread" && $op != "getProfiles" &&
|
||||||
$op != "fbexport" && $op != "logout" && $op != "pubsub") {
|
$op != "fbexport" && $op != "logout" && $op != "pubsub") {
|
||||||
|
|
||||||
header("Content-Type: text/plain");
|
if ($op == 'pref-feeds' && $_REQUEST['subop'] == 'add') {
|
||||||
print json_encode(array("error" => array("code" => 6)));
|
header("Content-Type: text/html");
|
||||||
|
login_sequence($link);
|
||||||
|
render_login_form($link);
|
||||||
|
} else {
|
||||||
|
header("Content-Type: text/plain");
|
||||||
|
print json_encode(array("error" => array("code" => 6)));
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue