Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/CssEmbed/CssEmbed.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ protected function replace($matches)
*/
protected function embedFile($file)
{
// Check for various weird formats which the system is unable to handle. Perhaps there is a better way at some point?
if (substr($file, -4) == '.eot' || substr($file, -4) == '.ttf' || substr($file, -5) == '.woff')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix indentation

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll build a test, making sure it's not processing anything with a weird (so far, font-type), file ending and fix indentation

{
return;
}

return sprintf(self::URI_PATTERN, $this->mimeType($file), $this->base64($file));
}

Expand Down