Skip to content

Commit

Permalink
2.1.27
Browse files Browse the repository at this point in the history
In regard to #1856, fixed call to antiXSS library
  • Loading branch information
nilsteampassnet committed Aug 22, 2017
1 parent b851586 commit 42f4b0a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion sources/admin.queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
$aes->register();

// Load AntiXSS
require_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/AntiXSS/AntiXss.php';
require_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/AntiXSS/AntiXSS.php';
$antiXss = new protect\AntiXSS\AntiXSS();

// Prepare POST variables
Expand Down
2 changes: 1 addition & 1 deletion sources/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
function redirect($url)
{
// Load AntiXSS
require_once '../includes/libraries/protect/AntiXSS/AntiXss.php';
require_once '../includes/libraries/protect/AntiXSS/AntiXSS.php';
$antiXss = new protect\AntiXSS\AntiXSS();

if (!headers_sent()) { //If headers not sent yet... then do php redirect
Expand Down
4 changes: 2 additions & 2 deletions sources/identify.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function identifyUser($sentData)
require_once $SETTINGS['cpassman_dir'].'/sources/SplClassLoader.php';

// Load AntiXSS
require_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/AntiXSS/AntiXss.php';
require_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/AntiXSS/AntiXSS.php';
$antiXss = new protect\AntiXSS\AntiXSS();

if ($debugDuo == 1) {
Expand Down Expand Up @@ -663,7 +663,7 @@ function identifyUser($sentData)
)
);
$counter = DB::count();
if ($counter == 0) {
if ($counter === 0) {
logEvents('failed_auth', 'user_not_exists', "", stripslashes($username));
echo '[{"value" : "user_not_exists '.$username.'", "text":""}]';
exit();
Expand Down
8 changes: 4 additions & 4 deletions sources/main.functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ function handleConfigFile($action, $field = null, $value = null)
$tp_config_file = "../includes/config/tp.config.php";

// Load AntiXSS
require_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/AntiXSS/AntiXss.php';
require_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/AntiXSS/AntiXSS.php';
$antiXss = new protect\AntiXSS\AntiXSS();

// include librairies & connect to DB
Expand Down Expand Up @@ -1871,7 +1871,7 @@ function prepareFileWithDefuse($type, $source_file, $target_file, $password = ''
global $SETTINGS;

// Load AntiXSS
require_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/AntiXSS/AntiXss.php';
require_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/AntiXSS/AntiXSS.php';
$antiXss = new protect\AntiXSS\AntiXSS();

// Protect against bad inputs
Expand Down Expand Up @@ -2000,7 +2000,7 @@ function fileDelete($file)
global $SETTINGS;

// Load AntiXSS
require_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/AntiXSS/AntiXss.php';
require_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/AntiXSS/AntiXSS.php';
$antiXss = new protect\AntiXSS\AntiXSS();

$file = $antiXss->xss_clean($file);
Expand Down Expand Up @@ -2049,7 +2049,7 @@ function cleanText($string, $type = "")
global $SETTINGS;

// Load AntiXSS
require_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/AntiXSS/AntiXss.php';
require_once $SETTINGS['cpassman_dir'].'/includes/libraries/protect/AntiXSS/AntiXSS.php';
$antiXss = new protect\AntiXSS\AntiXSS();

if ($type === "css") {
Expand Down

0 comments on commit 42f4b0a

Please sign in to comment.