Merge remote-tracking branch 'origin/QA_4_4' into QA_4_4

This commit is contained in:
Weblate 2015-04-09 17:27:29 +02:00
commit a50da779cf
2 changed files with 11 additions and 7 deletions

View File

@ -9,6 +9,7 @@ phpMyAdmin - ChangeLog
- bug #4841 Status page: Mislukte pogingen per uur value is incorrect
- bug MIME Transformation link fixed
- bug #4838 Prevents console window from moving out of the screen height
- bug #4829 Create procedure via SQL Editor not more possible
4.4.1.1 (2015-04-08)
- bug #4846 Web server's error log is flooded

View File

@ -101,14 +101,16 @@ class ImportSql extends ImportPlugin
*/
private $_stringFunctions = array(
self::READ_MB_FALSE => array(
'substr' => 'substr',
'strlen' => 'strlen',
'strpos' => 'strpos',
'substr' => 'substr',
'strlen' => 'strlen',
'strpos' => 'strpos',
'strtoupper' => 'strtoupper',
),
self::READ_MB_TRUE => array(
'substr' => 'mb_substr',
'strlen' => 'mb_strlen',
'strpos' => 'mb_strpos',
'substr' => 'mb_substr',
'strlen' => 'mb_strlen',
'strpos' => 'mb_strpos',
'strtoupper' => 'mb_strtoupper',
),
);
@ -366,7 +368,8 @@ class ImportSql extends ImportPlugin
}
//If DELIMITER is found.
if ($specialChars === $this->_delimiterKeyword) {
$specialCharsUpper = $this->_stringFctToUse['strtoupper']($specialChars);
if ($specialCharsUpper === $this->_delimiterKeyword) {
$this->_isInDelimiter = true;
$this->_delimiterPosition = $this->_firstSearchChar
+ $this->_stringFctToUse['strlen']($specialChars);