Package org.labkey.remoteapi.internal
Class EncodeUtils
java.lang.Object
org.labkey.remoteapi.internal.EncodeUtils
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
 
- 
Field Details
- 
WAF_PREFIX
- See Also:
 
 
 - 
 - 
Constructor Details
- 
EncodeUtils
public EncodeUtils() 
 - 
 - 
Method Details
- 
wafEncode
Obfuscates content that's often intercepted by web application firewalls that are scanning for likely SQL or script injection. We have a handful of endpoints that intentionally accept SQL or script, so we encode the text to avoid tripping alarms. It's a simple BASE64 encoding that obscures the content, and lets the WAF scan for and reject malicious content on all other parameters. See issue 48509 and PageFlowUtil.wafEncode()/wafDecode(). - 
encodeURIComponent
URL Encode string. NOTE! this should be used on parts of a url, not an entire url Like JavaScript encodeURIComponent() 
 -