• Yorick Peterse's avatar
    Limit the size of SVGs when viewing them as blobs · 8171544b
    Yorick Peterse authored
    This ensures that SVGs greater than 2 megabytes are not scrubbed and
    rendered. This in turn prevents requests from timing out due to
    reading/scrubbing large SVGs potentially taking a lot of time (and
    memory). The use of 2 megabytes is completely arbitrary.
    
    Fixes gitlab-org/gitlab-ce#1435
    8171544b
blob_spec.rb 2.98 KB