Page MenuHomePhabricator

The "{img ...}" and "{meme ...}" remarkup rules violate the new Content-Security-Policy
Closed, ResolvedPublic

Description

See T4340. See T13099. See https://discourse.phabricator-community.org/t/meme-remarkup-tag-no-longer-working-after-upgrading-to-2018-w09/1210/3.

Both {img ...} and {meme ...} source images from the main Phabricator server ('self') even if a CDN domain is configured. This violates our strict Content-Security-Policy which permits images only from the CDN domain.

These tasks are related, although probably not everything (and perhaps almost nothing) is going to make it into scope:

A simple fix is to add 'self' to img-src, but I'd prefer not to loosen the CSP if we can help it, and neither of these rules should require sourcing from the primary domain.

Event Timeline

epriestley triaged this task as Normal priority.Mar 7 2018, 11:11 PM
epriestley created this task.

This is technically fixed now but the meme stuff is real old and rough so I'm going to maybe make some kind of effort to get through more of T5258, etc.

Macro awwyiss:  quack i am a duck I go quack ha ha ha

Actually, HTML mail has an issue now.

very good memes

I am a meme-master