ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This class is adapted from code coming from Zend Framework. More...
Public Member Functions | |
testHtmlEscapingConvertsSpecialChars () | |
testHtmlAttributeEscapingConvertsSpecialChars () | |
testJavascriptEscapingConvertsSpecialChars () | |
testJavascriptEscapingReturnsStringIfZeroLength () | |
testJavascriptEscapingReturnsStringIfContainsOnlyDigits () | |
testCssEscapingConvertsSpecialChars () | |
testCssEscapingReturnsStringIfZeroLength () | |
testCssEscapingReturnsStringIfContainsOnlyDigits () | |
testUrlEscapingConvertsSpecialChars () | |
testUnicodeCodepointConversionToUtf8 () | |
Range tests to confirm escaped range of characters is within OWASP recommendation. More... | |
testJavascriptEscapingEscapesOwaspRecommendedRanges () | |
testHtmlAttributeEscapingEscapesOwaspRecommendedRanges () | |
testCssEscapingEscapesOwaspRecommendedRanges () | |
Protected Member Functions | |
setUp () | |
codepointToUtf8 ($codepoint) | |
Convert a Unicode Codepoint to a literal UTF-8 character. More... | |
Protected Attributes | |
$htmlSpecialChars | |
All character encodings supported by htmlspecialchars(). More... | |
$htmlAttrSpecialChars | |
$jsSpecialChars | |
$urlSpecialChars | |
$cssSpecialChars | |
$env | |
This class is adapted from code coming from Zend Framework.
Definition at line 9 of file escapingTest.php.
|
protected |
Convert a Unicode Codepoint to a literal UTF-8 character.
int | $codepoint | Unicode codepoint in hex notation |
Definition at line 233 of file escapingTest.php.
Referenced by testCssEscapingEscapesOwaspRecommendedRanges(), testHtmlAttributeEscapingEscapesOwaspRecommendedRanges(), testJavascriptEscapingEscapesOwaspRecommendedRanges(), and testUnicodeCodepointConversionToUtf8().
|
protected |
Definition at line 147 of file escapingTest.php.
Twig_Test_EscapingTest::testCssEscapingConvertsSpecialChars | ( | ) |
Definition at line 183 of file escapingTest.php.
References $key.
Twig_Test_EscapingTest::testCssEscapingEscapesOwaspRecommendedRanges | ( | ) |
Definition at line 302 of file escapingTest.php.
References codepointToUtf8().
Twig_Test_EscapingTest::testCssEscapingReturnsStringIfContainsOnlyDigits | ( | ) |
Definition at line 195 of file escapingTest.php.
Twig_Test_EscapingTest::testCssEscapingReturnsStringIfZeroLength | ( | ) |
Definition at line 190 of file escapingTest.php.
Twig_Test_EscapingTest::testHtmlAttributeEscapingConvertsSpecialChars | ( | ) |
Definition at line 159 of file escapingTest.php.
References $key.
Twig_Test_EscapingTest::testHtmlAttributeEscapingEscapesOwaspRecommendedRanges | ( | ) |
Definition at line 279 of file escapingTest.php.
References codepointToUtf8().
Twig_Test_EscapingTest::testHtmlEscapingConvertsSpecialChars | ( | ) |
Definition at line 152 of file escapingTest.php.
References $key.
Twig_Test_EscapingTest::testJavascriptEscapingConvertsSpecialChars | ( | ) |
Definition at line 166 of file escapingTest.php.
References $key.
Twig_Test_EscapingTest::testJavascriptEscapingEscapesOwaspRecommendedRanges | ( | ) |
Definition at line 256 of file escapingTest.php.
References codepointToUtf8().
Twig_Test_EscapingTest::testJavascriptEscapingReturnsStringIfContainsOnlyDigits | ( | ) |
Definition at line 178 of file escapingTest.php.
Twig_Test_EscapingTest::testJavascriptEscapingReturnsStringIfZeroLength | ( | ) |
Definition at line 173 of file escapingTest.php.
Twig_Test_EscapingTest::testUnicodeCodepointConversionToUtf8 | ( | ) |
Range tests to confirm escaped range of characters is within OWASP recommendation.
Only testing the first few 2 ranges on this prot. function as that's all these other range tests require.
Definition at line 215 of file escapingTest.php.
References $result, and codepointToUtf8().
Twig_Test_EscapingTest::testUrlEscapingConvertsSpecialChars | ( | ) |
Definition at line 200 of file escapingTest.php.
References $key.
|
protected |
Definition at line 116 of file escapingTest.php.
|
protected |
Definition at line 145 of file escapingTest.php.
|
protected |
Definition at line 22 of file escapingTest.php.
|
protected |
All character encodings supported by htmlspecialchars().
Definition at line 14 of file escapingTest.php.
|
protected |
Definition at line 52 of file escapingTest.php.
|
protected |
Definition at line 81 of file escapingTest.php.