Ard Schrijvers pushed to branch master at cms-community / hippo-site-toolkit
Commits: cdaa5311 by Ard Schrijvers at 2016-05-26T16:16:36+02:00 HSTTWO-3659 fix unit test - - - - - 1 changed file: - client-modules/page-composer/src/test/java/org/hippoecm/hst/pagecomposer/jaxrs/services/validators/PathInfoValidatorTest.java Changes: ===================================== client-modules/page-composer/src/test/java/org/hippoecm/hst/pagecomposer/jaxrs/services/validators/PathInfoValidatorTest.java ===================================== --- a/client-modules/page-composer/src/test/java/org/hippoecm/hst/pagecomposer/jaxrs/services/validators/PathInfoValidatorTest.java +++ b/client-modules/page-composer/src/test/java/org/hippoecm/hst/pagecomposer/jaxrs/services/validators/PathInfoValidatorTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2014 Hippo B.V. (http://www.onehippo.com) + * Copyright 2014-2016 Hippo B.V. (http://www.onehippo.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -47,10 +47,10 @@ public class PathInfoValidatorTest { "deny those requests because of security ", PathInfoValidator.containsEncodedDirectoryTraversalChars("te%5cst", "UTF-8")); assertTrue("forward slash encoded is not allowed because default tomcat / jboss " + "deny those requests because of security ", PathInfoValidator.containsEncodedDirectoryTraversalChars("te%2est", "UTF-8")); - assertTrue("forward slash encoded is not allowed because default tomcat / jboss " + - "deny those requests because of security ", PathInfoValidator.containsEncodedDirectoryTraversalChars("test%", "UTF-8")); - assertTrue("forward slash encoded is not allowed because default tomcat / jboss " + - "deny those requests because of security ", PathInfoValidator.containsEncodedDirectoryTraversalChars("test%test", "UTF-8")); + assertTrue("% is not allowed " + + "deny those requests because of security ", PathInfoValidator.containsInvalidChars("test%", "UTF-8")); + assertTrue("% is not allowed " + + "deny those requests because of security ", PathInfoValidator.containsInvalidChars("test%test", "UTF-8")); } @Test View it on GitLab: https://code.onehippo.org/cms-community/hippo-site-toolkit/commit/cdaa53118f585755177aa1181b2ceb31f0833feb
_______________________________________________ Hippocms-svn mailing list Hippocms-svn@lists.onehippo.org https://lists.onehippo.org/mailman/listinfo/hippocms-svn