Skip to content

Commit af9144f

Browse files
committed
update tag
1 parent 726f123 commit af9144f

File tree

1 file changed

+4
-4
lines changed
  • sparkler-core/sparkler-plugins/url-injector/src/main/java/edu/usc/irds/sparkler/plugin

1 file changed

+4
-4
lines changed

sparkler-core/sparkler-plugins/url-injector/src/main/java/edu/usc/irds/sparkler/plugin/UrlInjector.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ private List<UrlInjectorObj> appendForm(Collection<String> urls, List<String> to
7676
for (String temp : tokens) {
7777
String json = root.toString();
7878
json = json.replace("${token}", temp);
79-
root.put("TAG", this.pluginConfig.getOrDefault("tag", "no tag defined"));
79+
root.put("TAG", temp);
8080
UrlInjectorObj o = new UrlInjectorObj(u, json, method);
8181
fixedUrls.add(o);
8282
}
@@ -101,7 +101,7 @@ private List<UrlInjectorObj> replaceURLToken(Collection<String> urls, List<Strin
101101
String rep = u.replace("${token}", temp);
102102
String method = getHTTPMethod(rep);
103103
rep = trimHTTPMethod(rep);
104-
root.put("TAG", this.pluginConfig.getOrDefault("tag", "no tag defined"));
104+
root.put("TAG", temp);
105105
UrlInjectorObj o = new UrlInjectorObj(rep, root.toString(), method);
106106
fixedUrls.add(o);
107107
}
@@ -127,7 +127,7 @@ private List<UrlInjectorObj> appendJSON(Collection<String> urls, List<String> to
127127
try {
128128
json = (JSONObject) parser.parse(parsedJsonStr);
129129
root.put("JSON", json);
130-
root.put("TAG", this.pluginConfig.getOrDefault("tag", "no tag defined"));
130+
root.put("TAG", temp);
131131
} catch (ParseException e) {
132132
// TODO Auto-generated catch block
133133
e.printStackTrace();
@@ -158,7 +158,7 @@ private List<UrlInjectorObj> appendSelenium(Collection<String> urls, List<String
158158
u = trimHTTPMethod(u);
159159
if (tokens.size() > 0) {
160160
for (String temp : tokens) {
161-
root.put("TAG", this.pluginConfig.getOrDefault("tag", "no tag defined"));
161+
root.put("TAG", temp);
162162
String json = root.toString();
163163
json = json.replace("${token}", temp);
164164
UrlInjectorObj o = new UrlInjectorObj(u, json, method);

0 commit comments

Comments
 (0)