Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit e971bdf

Browse files
committed
bugfixes:
- logging was broken - lookups were not being executed
1 parent 82eb2ed commit e971bdf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

httpBL/plugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
Plugin Name: HTTP:BL
44
Plugin URI: https://github.com/joshp23/YOURLS-httpBL
55
Description: An implementation of Project Honeypot's http:BL for YOURLS
6-
Version: 2.0.5
6+
Version: 2.0.6
77
Author: Josh Panter
88
Author URI: https://unfettered.net
99
**/
1010
// No direct call
1111
if( !defined( 'YOURLS_ABSPATH' ) ) die();
12-
if (yourls_get_option('httpBL_init_log') === true) httpBL_human_check();
12+
if (yourls_get_option('httpBL_init_log') == true) httpBL_human_check();
1313
/*
1414
*
1515
* Admin Page
@@ -542,7 +542,7 @@ function httpBL_logme($block = false, $ip='', $typemeaning='',$threat='',$activi
542542
global $ydb;
543543
$table = 'httpBL_log';
544544
$binds = array('action' => $action, 'ip' => $ip, 'type' => $typemeaning, 'threat' => $threat, 'activity' => $activity, 'page' => $page, 'ua' => $ua);
545-
$sql = "INSERT INTO `$table` (action, ip, type, threat, activity, page, ua) VALUES (:action, :ip, :typemeaning, :threat, :activity, :page, :ua)";
545+
$sql = "INSERT INTO `$table` (action, ip, type, threat, activity, page, ua) VALUES (:action, :ip, :type, :threat, :activity, :page, :ua)";
546546
$insert = $ydb->fetchAffected($sql, $binds);
547547

548548
}

0 commit comments

Comments
 (0)