Export to GitHub

wro4j - issue #877

CssUrlRewritingProcessor does not handle properly empty url reference [url("")]


Posted on Jun 1, 2014 by Helpful Monkey

What steps will reproduce the problem? 1.include this definition in one of the css files: background-image: url("");
2. use CssUrlRewritingProcessor

What is the expected output? What do you see instead? The expected output is: background-image: url("");

The current output is like: background-image: ../cssu../cssr../cssl../css(../css"../css"../css)../css;

What version of the product are you using? On what operating system? Im using 1.7.5 version on Windows7 (tomcat server)

Please provide any additional information below.

Comment #1

Posted on Jun 2, 2014 by Massive Monkey

(No comment was entered for this change.)

Comment #2

Posted on Jun 2, 2014 by Massive Monkey

Just curious, what the use-case for having an empty url?

Comment #3

Posted on Jun 2, 2014 by Massive Monkey

Fixed in branch 1.7.x

Comment #4

Posted on Jun 2, 2014 by Helpful Monkey

Thank you very much Alex!

The use case is irresponsible customers ):

Comment #5

Posted on Jun 2, 2014 by Massive Monkey

Comment deleted

Comment #6

Posted on Jun 2, 2014 by Massive Monkey

This is one of the most funniest use-case I've ever heard of :D

Comment #7

Posted on Jun 8, 2014 by Helpful Monkey

Hi Alex was the fix applied for 1.7.5 version in maven mvnrepository? http://mvnrepository.com/artifact/ro.isdc.wro4j/wro4j-core/1.7.5

Comment #8

Posted on Jun 8, 2014 by Massive Monkey

No, it will be released with 1.7.6.

Status: Fixed

Labels:
Type-Defect Priority-Medium Milestone-Release-1.7.6