summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-06-07 10:09:07 +0400
committerAndrew Dolgov <[email protected]>2012-06-07 10:09:16 +0400
commit64436e103915e02f8c926639646002b60055dbbd (patch)
treed0524cd1c19cc6b5b07c4d54286ce3b3d93c9c6f /classes
parent76428e4b02b3ef41999c3cd732bcf1a0c081f51b (diff)
prevent session modification in public/share
Diffstat (limited to 'classes')
-rw-r--r--classes/public_handler.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/classes/public_handler.php b/classes/public_handler.php
index 7db341458..51ba48fed 100644
--- a/classes/public_handler.php
+++ b/classes/public_handler.php
@@ -256,9 +256,7 @@ class Public_Handler extends Handler {
$id = db_fetch_result($result, 0, "ref_id");
$owner_uid = db_fetch_result($result, 0, "owner_uid");
- $_SESSION["uid"] = $owner_uid;
- $article = format_article($this->link, $id, false, true);
- $_SESSION["uid"] = "";
+ $article = format_article($this->link, $id, false, true, $owner_uid);
print_r($article['content']);