fix sharepopup/subscribe public handler actions in single user mode

This commit is contained in:
Andrew Dolgov 2012-12-07 09:36:14 +04:00
parent d5e9cf28f1
commit 61a748f87f
1 changed files with 8 additions and 0 deletions

View File

@ -377,6 +377,10 @@ class Handler_Public extends Handler {
}
function sharepopup() {
if (SINGLE_USER_MODE) {
login_sequence($this->link);
}
header('Content-Type: text/html; charset=utf-8');
print "<html>
<head>
@ -542,6 +546,10 @@ class Handler_Public extends Handler {
}
function subscribe() {
if (SINGLE_USER_MODE) {
login_sequence($this->link);
}
if ($_SESSION["uid"]) {
$feed_url = db_escape_string(trim($_REQUEST["feed_url"]));