aboutsummaryrefslogtreecommitdiffstats
path: root/mod/mail.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/mail.php')
-rw-r--r--mod/mail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/mail.php b/mod/mail.php
index 8cab42bd0..6976209b7 100644
--- a/mod/mail.php
+++ b/mod/mail.php
@@ -175,7 +175,7 @@ function mail_content(&$a) {
$r = q("select abook.*, xchan.* from abook left join xchan on abook_xchan = xchan_hash
where abook_channel = %d and abook_xchan = '%s' limit 1",
intval(local_user()),
- intval(argv(2))
+ dbesc($_REQUEST['hash'])
);
if($r) {
$prename = $r[0]['xchan_name'];