Skip to content

Commit

Permalink
Merge branch 'hotfix-10.3.7' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicWatson committed Dec 1, 2015
2 parents 051af8f + 24542db commit 0aa8fd1
Show file tree
Hide file tree
Showing 14 changed files with 8,064 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ component extends="testbox.system.BaseSpec" {
describe( "clean()", function(){

it( "should strip script tags from content (we know it should do much more, but just to test...)", function(){
var dirty = "some test <script>alert('hello')</script> to be cleaned";
var cleaned = "some test to be cleaned";
var dirty = '<b>BigBossKent</b><button onclick="f()">Alert - please click</button><script>function f() {confirm(“Youve been hacked!")}</script>';
var cleaned = "<b>BigBossKent</b>
<button>Alert - please click</button>";
var actual = antiSamy.clean( dirty );

expect( actual ).toBe( cleaned );
Expand Down
2 changes: 1 addition & 1 deletion system/services/security/AntiSamyService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ component {

// CONSTRUCTOR
public any function init() {
_setLibPath( ExpandPath( "/coldbox/system/plugins/AntiSamy-lib" ) );
_setLibPath( ExpandPath( "/preside/system/services/security/antisamylib" ) );
_setupPolicyFiles();
_setupAntiSamy();

Expand Down
Binary file not shown.

0 comments on commit 0aa8fd1

Please sign in to comment.