Changeset 729


Ignore:
Timestamp:
Jun 30, 2020 12:58:18 AM (4 years ago)
Author:
anonymous
Message:
 
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/composer.json

    r700 r729  
    1313    ],
    1414    "require": {
    15         "php": ">=5.6 <7.4"
     15        "php": ">=5.6 <=7.4"
    1616    },
    1717    "require-dev": {
  • trunk/lib/PDO.inc.php

    r724 r729  
    184184
    185185        try {
     186            // Set charset in DSN and disable emulated prepares as per https://stackoverflow.com/questions/134099/are-pdo-prepared-statements-sufficient-to-prevent-sql-injection/12202218
    186187            $dsn = sprintf('mysql:host=%s;dbname=%s;charset=%s', $this->getParam('db_server'), $this->getParam('db_name'), $this->getParam('character_set'));
    187188            $options = [
  • trunk/lib/Utilities.inc.php

    r724 r729  
    404404    $num = mb_strlen($text);
    405405    for ($i=0; $i<$num; $i++) {
    406         $output .= sprintf('&#%03s', ord($text{$i}));
     406        $output .= sprintf('&#%03s', ord($text[$i]));
    407407    }
    408408    return $output;
     
    707707    $val = trim(ini_get($val));
    708708    if ($val != '') {
    709         $unit = strtolower($val{strlen($val) - 1});
     709        $unit = strtolower($val[mb_strlen($val) - 1]);
    710710        $val = preg_replace('/\D/', '', $val);
    711711
Note: See TracChangeset for help on using the changeset viewer.