Skip to content

Commit 726f123

Browse files
committed
add missing tag
1 parent 38092c1 commit 726f123

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,14 @@ private List<UrlInjectorObj> appendSelenium(Collection<String> urls, List<String
158158
u = trimHTTPMethod(u);
159159
if (tokens.size() > 0) {
160160
for (String temp : tokens) {
161-
String json = root.toString();
162161
root.put("TAG", this.pluginConfig.getOrDefault("tag", "no tag defined"));
162+
String json = root.toString();
163163
json = json.replace("${token}", temp);
164164
UrlInjectorObj o = new UrlInjectorObj(u, json, method);
165165
fixedUrls.add(o);
166166
}
167167
} else {
168+
root.put("TAG", this.pluginConfig.getOrDefault("tag", "no tag defined"));
168169
UrlInjectorObj o = new UrlInjectorObj(u, root.toString(), method);
169170
fixedUrls.add(o);
170171
}

0 commit comments

Comments
 (0)