This commit is contained in:
Roland Gruber 2020-06-05 16:00:59 +02:00
parent 5a09f8159f
commit f36446fe43
4 changed files with 4 additions and 4 deletions

View File

@ -227,7 +227,7 @@ function generateSalt($len) {
$salt = '';
for ($i = 0; $i < $len; $i++) {
$pos = abs(getRandomNumber() % strlen($chars));
$salt .= $chars{$pos};
$salt .= $chars[$pos];
}
return $salt;
}

View File

@ -128,7 +128,7 @@ function checkChmod($right, $target, $chmod) {
}
// Cut the number from the chmod:
$chmod_num = $chmod{$chmod_num};
$chmod_num = $chmod[$chmod_num];
// Now check, if the chmod_num can be right with the $right
// What numbers allow "read"

View File

@ -189,7 +189,7 @@ class TemplateRender extends PageRender {
$next_number = $vals;
foreach ($mod as $calc) {
$operand = $calc{0};
$operand = $calc[0];
$operator = substr ($calc,1);
switch ($operand) {

View File

@ -217,7 +217,7 @@ abstract class Export {
*/
protected function isSafeAscii($str) {
for ($i=0;$i<strlen($str);$i++)
if (ord($str{$i}) < 32 || ord($str{$i}) > 127)
if (ord($str[$i]) < 32 || ord($str[$i]) > 127)
return false;
return true;