File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 // ENT_QUOTES|ENT_HTML5 encodes single quotes as ' (HTML5 named entity)
3535 expect (html_escape ("O'Brien " ))->toBe ('O'Brien ' );
3636});
37+
38+ it ('thold.php AJAX filter uses encodeURIComponent for URL params ' , function () {
39+ $ src = file_get_contents (realpath (__DIR__ . '/../../thold.php ' ));
40+ // rfilter is base64-encoded then URI-encoded; other params are URI-encoded directly
41+ expect ($ src )->toContain ("encodeURIComponent(base64_encode($('#rfilter').val())) " );
42+ expect ($ src )->toContain ("encodeURIComponent($('#rows').val()) " );
43+ });
44+
45+ it ('thold_graph.php AJAX filter uses encodeURIComponent for URL params ' , function () {
46+ $ src = file_get_contents (realpath (__DIR__ . '/../../thold_graph.php ' ));
47+ expect ($ src )->toContain ('encodeURIComponent ' );
48+ });
49+
50+ it ('notify_lists.php AJAX filter uses encodeURIComponent for URL params ' , function () {
51+ $ src = file_get_contents (realpath (__DIR__ . '/../../notify_lists.php ' ));
52+ expect ($ src )->toContain ('encodeURIComponent ' );
53+ });
You can’t perform that action at this time.
0 commit comments