|
Squid Web Cache master
|
Protected Member Functions | |
| void | testUrlDecode () |
| void | testUrlEncode () |
| void | PercentZeroNullDecoding () |
Private Member Functions | |
| CPPUNIT_TEST_SUITE (TestRfc1738) | |
| CPPUNIT_TEST (testUrlDecode) | |
| CPPUNIT_TEST (testUrlEncode) | |
| CPPUNIT_TEST (PercentZeroNullDecoding) | |
| CPPUNIT_TEST_SUITE_END () | |
Test the URL coder RFC 1738 Engine
Definition at line 21 of file testRFC1738.cc.
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
SECURITY BUG TESTS: avoid null truncation attacks by skipping %00 bytes
Definition at line 147 of file testRFC1738.cc.
References rfc1738_unescape(), xfree, and xstrdup.
|
protected |
Definition at line 41 of file testRFC1738.cc.
References rfc1738_unescape(), xfree, and xstrdup.
|
protected |
Public API is formed of a triplet of encode functions mapping to the rfc1738_do_encode() engine.
Flags: rfc1738_escape == 0 rfc1738_escape_unescaped == -1 rfc1738_escape_part == 1
Definition at line 110 of file testRFC1738.cc.
References rfc1738_do_escape(), RFC1738_ESCAPE_RESERVED, RFC1738_ESCAPE_UNESCAPED, and RFC1738_ESCAPE_UNSAFE.