Skip to content

Commit

Permalink
Merge pull request #164 from lem9/bug_3821
Browse files Browse the repository at this point in the history
Bug #3821 Safari: white page
  • Loading branch information
nijel committed Feb 12, 2013
2 parents a358df5 + c758fda commit 9702c92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ phpMyAdmin - ChangeLog
3.5.7.0 (not yet released)
- bug #3779 [core] Problem with backslash in enum fields
- bug #3816 Missing server_processlist.php
- bug #3821 Safari: white page

3.5.6.0 (2013-01-28)
- bug #3593604 [status] Erroneous advisor rule
Expand Down
6 changes: 5 additions & 1 deletion libraries/header_http.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
if (!$GLOBALS['cfg']['AllowThirdPartyFraming']) {
header('X-Frame-Options: SAMEORIGIN');
header("X-Content-Security-Policy: allow 'self' ; options inline-script eval-script; frame-ancestors 'self'; img-src 'self' data:");
header("X-WebKit-CSP: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'");
if (PMA_USR_BROWSER_AGENT == 'SAFARI') {
header("X-WebKit-CSP: allow 'self'; options inline-script eval-script");
} else {
header("X-WebKit-CSP: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'");
}
}
PMA_no_cache_header();
if (!defined('IS_TRANSFORMATION_WRAPPER')) {
Expand Down

0 comments on commit 9702c92

Please sign in to comment.