mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
url analyzer does not complain for url query strings
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user