Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Foellmann <foellmann@foe-services.de>2014-12-23 14:48:13 +0300
committerChristian Foellmann <foellmann@foe-services.de>2014-12-23 14:48:13 +0300
commit2bfb20e57418ebf396149782be9f98e868fe8608 (patch)
treea5ec4011410970603d3f462a535a5a359057fa77 /libraries/PDF.class.php
parent20f1bf77c8281efc675a14e0f6bf52f657dabd9a (diff)
UPDATE 4.3.34.3.3
Diffstat (limited to 'libraries/PDF.class.php')
-rw-r--r--libraries/PDF.class.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/libraries/PDF.class.php b/libraries/PDF.class.php
index 289a3f4234..fcf8e9423f 100644
--- a/libraries/PDF.class.php
+++ b/libraries/PDF.class.php
@@ -31,7 +31,7 @@ class PMA_PDF extends TCPDF
*
* @param string $orientation page orientation
* @param string $unit unit
- * @param mixed $format the format used for pages
+ * @param string $format the format used for pages
* @param boolean $unicode true means that the input text is unicode
* @param string $encoding charset encoding; default is UTF-8.
* @param boolean $diskcache if true reduce the RAM memory usage by caching
@@ -116,7 +116,7 @@ class PMA_PDF extends TCPDF
/**
* Displays an error message
*
- * @param string $error_message the error mesage
+ * @param string $error_message the error message
*
* @return void
*/
@@ -139,7 +139,11 @@ class PMA_PDF extends TCPDF
{
$pdfData = $this->getPDFData();
PMA_Response::getInstance()->disable();
- PMA_downloadHeader($filename, 'application/pdf', strlen($pdfData));
+ PMA_downloadHeader(
+ $filename,
+ 'application/pdf',
+ /*overload*/mb_strlen($pdfData)
+ );
echo $pdfData;
}
}