diff options
author | Andrew Dolgov <[email protected]> | 2012-06-07 10:09:07 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-06-07 10:09:16 +0400 |
commit | 64436e103915e02f8c926639646002b60055dbbd (patch) | |
tree | d0524cd1c19cc6b5b07c4d54286ce3b3d93c9c6f /classes/public_handler.php | |
parent | 76428e4b02b3ef41999c3cd732bcf1a0c081f51b (diff) |
prevent session modification in public/share
Diffstat (limited to 'classes/public_handler.php')
-rw-r--r-- | classes/public_handler.php | 4 |
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']); |