Skip to content

Commit

Permalink
Issue 138: Fix for String Append in 3 files identified. (tsugiproject…
Browse files Browse the repository at this point in the history
  • Loading branch information
TurRil authored Mar 24, 2022
1 parent 783ba9e commit 3875e8b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cron/canvas.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@
$sql = "DELETE FROM {$CFG->dbprefix}cal_event WHERE event_id = :event_id";
$PDOX->queryDie($sql, array(':event_id' => $row['event_id']));

error_log("Send event_id=".$row['event_id']." response="+$response_code);
error_log("Send event_id=". $row['event_id'] ." response=". $response_code);

2 changes: 1 addition & 1 deletion vendor/tsugi/lib/include/pdo.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
$PDOX = new \Tsugi\Util\PDOX($CFG->pdo, $CFG->dbuser, $CFG->dbpass);
$PDOX->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch(\PDOException $ex){
error_log("DB connection: "+$ex->getMessage());
error_log("DB connection: ". $ex->getMessage());
die($ex->getMessage()); // with error_log
}
}
Expand Down
2 changes: 1 addition & 1 deletion vendor/tsugi/lib/src/Util/LTI13.php
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ public static function generatePKCS8Pair(&$publicKey, &$privateKey) {

if ( $privKey === false ) {
$error = openssl_error_string();
error_log("generatePKCS8Pair error="+$error);
error_log("generatePKCS8Pair error=". $error);
$privateKey = null;
$publicKey = null;
return $error;
Expand Down

0 comments on commit 3875e8b

Please sign in to comment.