Skip to content

Commit

Permalink
Refactor HTML Decode Operation
Browse files Browse the repository at this point in the history
  • Loading branch information
felixb1515 committed Dec 12, 2024
1 parent 110c273 commit b34e7aa
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package de.usd.cstchef.operations.dataformat;

import java.nio.charset.StandardCharsets;

import org.apache.commons.text.StringEscapeUtils;

import burp.BurpUtils;
import burp.api.montoya.core.ByteArray;
import de.usd.cstchef.Utils.MessageType;
import de.usd.cstchef.operations.Operation;
Expand All @@ -15,7 +12,7 @@ public class HtmlDecode extends Operation {

@Override
protected ByteArray perform(ByteArray input, MessageType messageType) throws Exception {
return factory.createByteArray(StringEscapeUtils.unescapeHtml4(input.toString()));
return factory.createByteArray(BurpUtils.getInstance().getApi().utilities().htmlUtils().decode(input.toString()));
}

}

0 comments on commit b34e7aa

Please sign in to comment.