aboutsummaryrefslogtreecommitdiffstats
path: root/mod/modexp.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-12 04:07:03 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-12 04:07:03 -0700
commit013d2604f886bc7cbd2c5263d3577e8cf40f9fcc (patch)
tree437a1b2853211263dc290913c8a35ce8de441f53 /mod/modexp.php
parentcc64742e2340038f4f14d1cdef492250b54c0a38 (diff)
downloadvolse-hubzilla-013d2604f886bc7cbd2c5263d3577e8cf40f9fcc.tar.gz
volse-hubzilla-013d2604f886bc7cbd2c5263d3577e8cf40f9fcc.tar.bz2
volse-hubzilla-013d2604f886bc7cbd2c5263d3577e8cf40f9fcc.zip
inline salmon magic keys
Diffstat (limited to 'mod/modexp.php')
-rw-r--r--mod/modexp.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/modexp.php b/mod/modexp.php
index d424b4c39..715ffe30c 100644
--- a/mod/modexp.php
+++ b/mod/modexp.php
@@ -8,14 +8,14 @@ function modexp_init(&$a) {
killme();
$nick = $a->argv[1];
- $r = q("SELECT `pubkey` FROM `user` WHERE `nickname` = '%s' LIMIT 1",
+ $r = q("SELECT `spubkey` FROM `user` WHERE `nickname` = '%s' LIMIT 1",
dbesc($nick)
);
if(! count($r))
killme();
- $lines = explode("\n",$r[0]['pubkey']);
+ $lines = explode("\n",$r[0]['spubkey']);
unset($lines[0]);
unset($lines[count($lines)]);
$x = base64_decode(implode('',$lines));
@@ -30,4 +30,5 @@ function modexp_init(&$a) {
killme();
-} \ No newline at end of file
+}
+