core icon indicating copy to clipboard operation
core copied to clipboard

Create an XSSTool Viewtool

Open wezell opened this issue 13 years ago • 6 comments

We need to create an XSSTool view tool so web developers can easily deal with XSS type issues. It should be mapped to $xss and wrap our Xss.class. It should be in the "application" scope and have 3 methods:

strip(String) hasXss(String) escape(Sring)

wezell avatar Jun 11 '13 14:06 wezell

We already have something like that

<tool>
  <key>xsstool</key>
  <scope>application</scope>
  <class>com.dotmarketing.viewtools.XssWebAPI</class>
</tool>

dotjorgeu avatar Jun 11 '13 14:06 dotjorgeu

And it follows the scripting enabled security guidelines

jtesser avatar Jun 11 '13 14:06 jtesser

The class here is a good start, but where is the documentation?

http://dotcms.com/docs/latest/TableOfContents?q=xsstool

Also, javadocs? We need to be very mindful of documenting our APIs and method names that we expose to end users. They need to be clear, concise and make sense. I am going to commit one that is a bit easier to use for a web developer in velocity

dotcmsCodeReview avatar Jun 11 '13 15:06 dotcmsCodeReview

So a method and javadoc was added

jtesser avatar Jun 11 '13 17:06 jtesser

Merged to master and master-2.5

jtesser avatar Jun 11 '13 17:06 jtesser

Fixed, tested on 3.2.3

bryanboza avatar Jul 01 '15 16:07 bryanboza