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:
authorMadhura Jayaratne <madhura.cj@gmail.com>2012-06-01 20:24:24 +0400
committerMadhura Jayaratne <madhura.cj@gmail.com>2012-06-01 20:24:24 +0400
commitd51ed9835c03a797427c38caae45c1d5c06e18c4 (patch)
tree333693a35c4cc26519f20da2c89e7e3627688fe9 /libraries
parent10510e16b4973f096b0ca05217dda8701f60da7c (diff)
Fix function name: PMA_no_cache_header -> PMA_noCacheHeader
Diffstat (limited to 'libraries')
-rw-r--r--libraries/core.lib.php4
-rw-r--r--libraries/header_http.inc.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/libraries/core.lib.php b/libraries/core.lib.php
index 1b9001d16e..cf95ff55ef 100644
--- a/libraries/core.lib.php
+++ b/libraries/core.lib.php
@@ -572,7 +572,7 @@ function PMA_sendHeaderLocation($uri, $use_refresh = false)
*
* @return void
*/
-function PMA_no_cache_header()
+function PMA_noCacheHeader()
{
// rfc2616 - Section 14.21
header('Expires: ' . date(DATE_RFC1123));
@@ -615,7 +615,7 @@ function PMA_no_cache_header()
function PMA_downloadHeader($filename, $mimetype, $length = 0, $no_cache = true)
{
if ($no_cache) {
- PMA_no_cache_header();
+ PMA_noCacheHeader();
}
/* Replace all possibly dangerous chars in filename */
$filename = str_replace(array(';', '"', "\n", "\r"), '-', $filename);
diff --git a/libraries/header_http.inc.php b/libraries/header_http.inc.php
index 0f265d43c8..a375d398c8 100644
--- a/libraries/header_http.inc.php
+++ b/libraries/header_http.inc.php
@@ -25,7 +25,7 @@ if (!$GLOBALS['cfg']['AllowThirdPartyFraming']) {
header("X-Content-Security-Policy: allow 'self'; options inline-script eval-script; frame-ancestors 'self'; img-src 'self' data:; script-src 'self' http://www.phpmyadmin.net");
header("X-WebKit-CSP: allow 'self' http://www.phpmyadmin.net; options inline-script eval-script");
}
-PMA_no_cache_header();
+PMA_noCacheHeader();
if (!defined('IS_TRANSFORMATION_WRAPPER')) {
// Define the charset to be used
header('Content-Type: text/html; charset=utf-8');