Commit 649b475c authored by David Johnson's avatar David Johnson

Be more agnostic to privkeys with extra newlines appended.

parent a36d878a
......@@ -136,6 +136,7 @@ if ($_SERVER["REMOTE_ADDR"] != $ip) {
# one in the widearea_nodeinfo table.
$node_id = "";
if (isset($privkey)) {
$privkey = chop($privkey,"\n");
$qres = DBQueryFatal("select node_id from widearea_nodeinfo" .
" where IP='" . addslashes($ip) . "' and" .
" privkey='" . addslashes($privkey) . "'");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment