https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create new HTML::toMarkdown wrapper
[friendica.git/.git]
/
mod
/
modexp.php
diff --git
a/mod/modexp.php
b/mod/modexp.php
index
5fc7012
..
966c111
100644
(file)
--- a/
mod/modexp.php
+++ b/
mod/modexp.php
@@
-1,18
+1,19
@@
<?php
<?php
-require_once('library/asn1.php');
+use Friendica\App;
+use Friendica\Database\DBA;
-function modexp_init(App
&
$a) {
+function modexp_init(App $a) {
if($a->argc != 2)
killme();
$nick = $a->argv[1];
$r = q("SELECT `spubkey` FROM `user` WHERE `nickname` = '%s' LIMIT 1",
if($a->argc != 2)
killme();
$nick = $a->argv[1];
$r = q("SELECT `spubkey` FROM `user` WHERE `nickname` = '%s' LIMIT 1",
-
dbesc
($nick)
+
DBA::escape
($nick)
);
);
- if (!
dbm::is_r
esult($r)) {
+ if (!
DBA::isR
esult($r)) {
killme();
}
killme();
}