url analyzer does not complain for url query strings

This commit is contained in:
Maxim Mossienko
2005-03-21 15:45:43 +03:00
parent 2d27b3e952
commit b6725c6f40
+5 -2
View File
@@ -177,8 +177,11 @@ public class HtmlUtil {
if (text.charAt(0) == '"' || text.charAt(0) == '\'') ++offset;
text = text.substring(offset,text.length() - offset);
int hashInd = text.lastIndexOf('#');
if (hashInd != -1) text = text.substring(0,hashInd);
int ind = text.lastIndexOf('#');
if (ind != -1) text = text.substring(0,ind);
ind = text.lastIndexOf('?');
if (ind!=-1) text = text.substring(0,ind);
if (text.length() > 0 && !text.startsWith("http://") && !text.startsWith("mailto:")) {
refs = new FileReferenceSet(text, element, offset, ReferenceType.FILE_TYPE, this).getAllReferences();