Skip to content
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.

downloadable font: rejected by sanitizer #16

Closed
kghbln opened this issue Mar 18, 2017 · 8 comments
Closed

downloadable font: rejected by sanitizer #16

kghbln opened this issue Mar 18, 2017 · 8 comments

Comments

@kghbln
Copy link
Contributor

kghbln commented Mar 18, 2017

Setup

  • MediaWiki 1.27.1 (2f9cdcc) 17:23, 17 February 2017
  • PHP 5.6.30-0+deb8u1 (apache2handler)
  • MariaDB 10.0.30-MariaDB-1~jessie
  • Pivot 1.0.0 (895feed) 21:55, 12 March 2017
  • Firefox 52.0

Issue

FontAwesome does not load and error console reveals:

downloadable font: rejected by sanitizer (font-family: "FontAwesome" style:normal weight:normal stretch:normal src index:1) source: https://pivot.wikiproject.net/w/skins/pivot/assets/fonts/fontawesome-webfont.woff2?af7ae  load.php:1:16254

Related links

@Hutchy68
Copy link
Owner

I can see Font Awesome is broken but I wonder if it is really this issue:

Font-Awesome/issues/3286

I see invalid version tags in developer console for Chrome.

@kghbln
Copy link
Contributor Author

kghbln commented Mar 18, 2017

Yeah, and on Chrome it loads but obviously with random icons. :|

@Hutchy68
Copy link
Owner

Hutchy68 commented Mar 18, 2017 via email

@Hutchy68
Copy link
Owner

Ah ha... see the headers of the Pivot vs. Foreground and specifically, Content-Type.

Pivot site

Cache-Control:max-age=0
Content-Length:302
Content-Type:text/html; charset=iso-8859-1
Date:Sat, 18 Mar 2017 23:52:17 GMT
Expires:Sat, 18 Mar 2017 23:52:17 GMT
Location:https://pivot.wikiproject.net/
Server:Apache/2.4.10 (Debian)

vs.

Foreground

Accept-Ranges:bytes
Cache-Control:max-age=31536000
Connection:Keep-Alive
Content-Length:65452
Content-Type:application/font-woff
Date:Sat, 18 Mar 2017 23:12:23 GMT
Expires:Sun, 18 Mar 2018 23:12:23 GMT
Keep-Alive:timeout=5, max=97
Last-Modified:Fri, 01 Jul 2016 17:00:08 GMT
Server:Apache/2.4.10 (Debian)

It doesn't recognize the MIME type and is sending it as HTML not a font type.

@kghbln
Copy link
Contributor Author

kghbln commented Mar 19, 2017

Ah ha... see the headers of the Pivot vs. Foreground and specifically, Content-Type.

I am absolutely puzzled as to why Apache is behaving differently. As a matter of fact I just copied the VirtualHost config file over and replaced foreground by pivot. I guess I am stuck in deep Apache irrationalities. We all love them :| Will try to figure out what is going on. Thanks for the pointer though.

@Hutchy68
Copy link
Owner

Hutchy68 commented Mar 19, 2017 via email

@kghbln
Copy link
Contributor Author

kghbln commented Mar 20, 2017

Perhaps an .htaccess mime override somewhere in a foreground directory.

Only if it comes with the code.

https://github.com/fontello/fontello/wiki/How-to-setup-server-to-serve-fonts

This was a live saver. I am back in business I believe. :)

This should probably be documented in the readme and on wiki?!

@Hutchy68
Copy link
Owner

I created a page for Pivot FAQs and will add the link to the README.md file. Closing this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants