Menu

#3854 (ok 3.5.8) Incorrect header for Safari 6.0

3.5.7
fixed
None
1
2013-06-11
2013-03-21
No

PHPMyAdmin version: 3.5.7
MySQL version: 5.5.30
PHP version: 5.3.22

It looks like Safari 6.0 changed the X-WebKit-CSP header syntax. I kept getting an error in the console (see attachment) and inline-editting didn't work, so I tried multiple things and changing this header solved all problems.

To clarify:

Safari 5.1 syntax: 
"X-WebKit-CSP: allow 'self'; options inline-script eval-script"

Safari 6.0 syntax: 
"X-WebKit-CSP: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'"

~~~~~

1 Attachments

Discussion

  • Marc Delisle

    Marc Delisle - 2013-03-24
    • assigned_to: Marc Delisle
     
  • Marc Delisle

    Marc Delisle - 2013-03-24

    Please try the attached patch.

     
  • Tom / dododedodonl

    This does not solve the problem (but it should)... I did some digging and it seems PMA_USR_BROWSER_VER contains a wrong value.

    User-Agent header:
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) AppleWebKit/536.28.10 (KHTML, like Gecko) Version/6.0.3 Safari/536.28.10
    
    Contents of PMA_USR_BROWSER_VER: 
    string(7) "5.0.536"
    
     
  • Marc Delisle

    Marc Delisle - 2013-03-25

    Thanks, please try this other patch.

     
  • Tom / dododedodonl

    This patch works!

     
  • Marc Delisle

    Marc Delisle - 2013-03-25
    • summary: X-WebKit-CSP safari 6.0 --> (ok 3.5.8) Incorrect header for Safari 6.0
    • status: open --> open-fixed
    • priority: 5 --> 1
     
  • Marc Delisle

    Marc Delisle - 2013-04-08
    • Status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed