Description
In isAbsolute method, if colon position is -1 then this url MAY STILL be an absolute url. In unix systems there may not be colon in absolute paths. For example: /home/someuser.somefile.html
So, in order to fix this, a leading / (slash) may be checked to exist like:
int colonPos = url.indexOf(":");
int slashPos = url.indexOf("/");
if (colonPos == -1 && slashPos == -1) {
return false; //Relative
} else if (colonPos == -1 && slashPos == 0) {
return true; //Absolute
}
//Original Code
//org.apache.wicket.markup.html.include.Include.java
protected final boolean isAbsolute(String url)
{
if (url == null)
// do a fast, simple check first
int colonPos;
if ((colonPos = url.indexOf(":")) == -1)
...