Skip to content

Improve CssLinkResourceTransformer to only update links to relative resources [SPR-11860] #16479

Closed

Description

@spring-projects-issues

Rossen Stoyanchev opened SPR-11860 and commented

We should only update links that point to resources we serve. The CssLinkResourceTransformer should have a check that excludes links that are not relative -- i.e. either links that don't start with "/" or links that start with a scheme. The scheme could be as simple as looking for the first ":" and then ensuring the resulting substring does not contain any "/". This is very similar to a check added recently to StringUtils.cleanPath.


Affects: 4.1 RC1

This issue is a sub-task of #16420

Issue Links:

Referenced from: commits 72baa9b

Activity

  1. added
    in: web
    type: task
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webtype: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions