Skip to content

Commit 69dff94

Browse files
committed
add missing tag
1 parent 554f8ad commit 69dff94

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +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.get("tag"));
7980
UrlInjectorObj o = new UrlInjectorObj(u, json, method);
8081
fixedUrls.add(o);
8182
}
@@ -124,6 +125,7 @@ private List<UrlInjectorObj> appendJSON(Collection<String> urls, List<String> to
124125
try {
125126
json = (JSONObject) parser.parse(parsedJsonStr);
126127
root.put("JSON", json);
128+
root.put("TAG", this.pluginConfig.get("tag"));
127129
} catch (ParseException e) {
128130
// TODO Auto-generated catch block
129131
e.printStackTrace();
@@ -155,6 +157,7 @@ private List<UrlInjectorObj> appendSelenium(Collection<String> urls, List<String
155157
if (tokens.size() > 0) {
156158
for (String temp : tokens) {
157159
String json = root.toString();
160+
root.put("TAG", this.pluginConfig.get("tag"));
158161
json = json.replace("${token}", temp);
159162
UrlInjectorObj o = new UrlInjectorObj(u, json, method);
160163
fixedUrls.add(o);

0 commit comments

Comments
 (0)