Skip to content

Commit

Permalink
3.0.10
Browse files Browse the repository at this point in the history
Code review fixes
  • Loading branch information
nilsteampassnet committed Nov 12, 2023
1 parent ae1c21d commit 312c3d6
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion includes/config/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
define('TP_VERSION', '3.0.10');
define("UPGRADE_MIN_DATE", "1697990713");
define('TP_VERSION_MINOR', '120');
define('TP_VERSION_MINOR', '121');
define('TP_TOOL_NAME', 'Teampass');
define('TP_ONE_DAY_SECONDS', 86400);
define('TP_ONE_WEEK_SECONDS', 604800);
Expand Down
2 changes: 1 addition & 1 deletion sources/identify.php
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ function authenticateThroughAD(string $username, array $userInfo, string $passwo
if ($SETTINGS['ldap_type'] === 'ActiveDirectory') {
require_once 'ldap.activedirectory.php';

if (userIsEnabled($userADInfos['dn'], $connection) === false) {
if (userIsEnabled((string) $userADInfos['dn'], $connection) === false) {
return [
'error' => true,
'message' => "Error : User is not enabled",
Expand Down
2 changes: 1 addition & 1 deletion sources/items.queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -6470,7 +6470,7 @@

// order previous passwords by date
$key_values = array_column($previous_passwords, 'date');
array_multisort($key_values, SORT_DESC, $previous_passwords);
array_multisort($key_values, /** @scrutinizer ignore-type */SORT_DESC, $previous_passwords);

// send data
echo (string) prepareExchangedData(
Expand Down
2 changes: 1 addition & 1 deletion sources/logs.datatables.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@
for ($i = 0; $i < count($aColumns); ++$i) {
$sWhere .= $aColumns[$i]." LIKE '%".filter_var($_GET['search']['value'], FILTER_SANITIZE_FULL_SPECIAL_CHARS)."%' OR ";
}
$sWhere = substr_replace($sWhere, '', -3).') ';
$sWhere = substr((string) $sWhere, 0, -3).') ';
}
}

Expand Down
1 change: 0 additions & 1 deletion sources/main.functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,6 @@ function cacheTableRefresh(): void
{
// Load class DB
loadClasses('DB');
$superGlobal = new SuperGlobal();

//Load Tree
$tree = new NestedTree(prefixTable('nested_tree'), 'id', 'parent_id', 'title');
Expand Down

0 comments on commit 312c3d6

Please sign in to comment.