Merge branch 'QA_4_6'

This commit is contained in:
Michal Čihař 2016-07-22 16:42:58 +02:00
commit 7de035439d
10 changed files with 11 additions and 10 deletions

View File

@ -23,6 +23,7 @@ phpMyAdmin - ChangeLog
4.6.4 (not yet released)
- issue Include X-Robots-Tag header in responses
- issue Enfornce numeric field length when creating table
- issue Fixed invalid Content-Length in some HTTP responses
4.6.3 (2016-06-23)
- issue #12249 Fixed cookie path on Windows

View File

@ -5263,7 +5263,7 @@ class DisplayResults
if (isset($content)) {
$size = mb_strlen($content, '8bit');
$size = strlen($content);
$display_size = Util::formatByteDown($size, 3, 1);
$result .= ' - ' . $display_size[0] . ' ' . $display_size[1];

View File

@ -38,7 +38,7 @@ class Linter
$str = new UtfString($str);
}
// The reason for using the '8bit' parameter is that the length
// The reason for using the strlen is that the length
// required is the length in bytes, not characters.
//
// Given the following string: `????+`, where `?` represents a
@ -51,7 +51,7 @@ class Linter
// (which is actually a new line) aren't going to be processed at
// all.
$len = ($str instanceof UtfString) ?
$str->length() : mb_strlen($len, '8bit');
$str->length() : strlen($len);
$lines = array(0);
for ($i = 0; $i < $len; ++$i) {

View File

@ -141,7 +141,7 @@ class PDF extends TCPDF
PMA_downloadHeader(
$filename,
'application/pdf',
mb_strlen($pdfData)
strlen($pdfData)
);
echo $pdfData;
}

View File

@ -687,7 +687,7 @@ class AuthenticationCookie extends AuthenticationPlugin
true
);
}
if (mb_strlen($this->_cookie_iv, '8bit') < $this->getIVSize()) {
if (strlen($this->_cookie_iv) < $this->getIVSize()) {
$this->createIV();
}

View File

@ -181,7 +181,7 @@ class Dia extends XMLWriter
PMA_downloadHeader(
$fileName,
'application/x-dia-diagram',
mb_strlen($output)
strlen($output)
);
print $output;
}

View File

@ -270,7 +270,7 @@ class Eps
PMA_downloadHeader(
$fileName,
'image/x-eps',
mb_strlen($output)
strlen($output)
);
print $output;
}

View File

@ -193,7 +193,7 @@ class Svg extends XMLWriter
PMA_downloadHeader(
$fileName,
'image/svg+xml',
mb_strlen($output)
strlen($output)
);
print $output;
}

View File

@ -1202,7 +1202,7 @@ function PMA_exportAsFileDownload($entries)
PMA_downloadHeader(
$filename,
'text/x-sql',
mb_strlen($dump)
strlen($dump)
);
echo $dump;

View File

@ -52,6 +52,6 @@ if ($result === false) {
PMA_downloadHeader(
$table . '-' . $_GET['transform_key'] . '.bin',
PMA_detectMIME($result),
mb_strlen($result, '8bit')
strlen($result)
);
echo $result;