processing-docs icon indicating copy to clipboard operation
processing-docs copied to clipboard

`raw.github.com` does not redirect to `raw.githubusercontent.com` for me

Open JobLeonard opened this issue 8 years ago • 2 comments

Issue description

raw.github.com does not always redirect to raw.githubusercontent.com, resulting in dead links for some users.

In order to better isolate your content from potentially malicious content uploaded by other users (e.g., content that might contain Cross-Site Scripting or other embedded attacks), we now serve user-generated content from subdomains of githubusercontent.com. This content is no longer served from subdomains of github.com.

##What's affected?

This change affects the following subdomains:

  • raw.github.com : Serves raw file content from your repository.
  • embed.github.com : Allows users to embed rich GitHub content on other sites.
  • render.github.com : Displays rich content on GitHub.com.
  • f.cloud.github.com : Hosts all those amazing gifs you use in Pull Requests and Issues.

Content formerly served by these subdomains is now served from subdomains of githubusercontent.com.

https://developer.github.com/changes/2014-04-25-user-content-security/

(was first raised here: https://github.com/processing/processing/issues/4947#issuecomment-284753326 )

URL(s) of affected page(s)

https://raw.github.com/processing/processing/master/build/shared/revisions.txt as linked from https://processing.org/download/?processing

Proposed fix

Replace affected links with githubusercontent domain, i.e. https://raw.githubusercontent.com/processing/processing/master/build/shared/revisions.txt

JobLeonard avatar Mar 07 '17 15:03 JobLeonard

Thanks for reporting this, and thanks @gohai for helping over in processing/processing#4947

I will take care of this and then ask you to re-test.

scotthmurray avatar Mar 07 '17 16:03 scotthmurray

i have this issue. the rest of my team is all able to access the raw tab, but i am redirected to an error page.

we had a serious and unnoticed bug, needed to revert to an old copy, and now need to copy/paste all of our work back into the codebase. i'm unable to do so as i can't open the raw page

was a solution found?

image

AndyatFocallocal avatar Jul 10 '17 22:07 AndyatFocallocal