Changeset 729
- Timestamp:
- Jun 30, 2020 12:58:18 AM (4 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/composer.json
r700 r729 13 13 ], 14 14 "require": { 15 "php": ">=5.6 < 7.4"15 "php": ">=5.6 <=7.4" 16 16 }, 17 17 "require-dev": { -
trunk/lib/PDO.inc.php
r724 r729 184 184 185 185 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 186 187 $dsn = sprintf('mysql:host=%s;dbname=%s;charset=%s', $this->getParam('db_server'), $this->getParam('db_name'), $this->getParam('character_set')); 187 188 $options = [ -
trunk/lib/Utilities.inc.php
r724 r729 404 404 $num = mb_strlen($text); 405 405 for ($i=0; $i<$num; $i++) { 406 $output .= sprintf('&#%03s', ord($text {$i}));406 $output .= sprintf('&#%03s', ord($text[$i])); 407 407 } 408 408 return $output; … … 707 707 $val = trim(ini_get($val)); 708 708 if ($val != '') { 709 $unit = strtolower($val {strlen($val) - 1});709 $unit = strtolower($val[mb_strlen($val) - 1]); 710 710 $val = preg_replace('/\D/', '', $val); 711 711
Note: See TracChangeset
for help on using the changeset viewer.