WordPress.org

Make WordPress Core

Ticket #12284: miqro-html-esc-testing.txt

File miqro-html-esc-testing.txt, 4.7 KB (added by miqrogroove, 4 years ago)

esc_html() Test results observed before and after patching

Line 
1WordPress esc_html() Raw I/O During Comment Feed Test
2
3Robert Chapin (miqrogroove) 18 February 2010
4
5Each line has a time stamp, followed by 1 for argument in, 2 for returned out, and the raw string.
6
7
8I/O before patch:
9
10[19-Feb-2010 02:03:55] 1'UTF-8'
11[19-Feb-2010 02:03:55] 1'UTF-8'
12[19-Feb-2010 02:03:55] 1'UTF-8'
13[19-Feb-2010 02:03:55] 1''
14[19-Feb-2010 02:03:55] 1'UTF-8'
15[19-Feb-2010 02:03:55] 1'Hello world!'
16[19-Feb-2010 02:03:55] 1'Hello world, This is an ⊕ test!'
17[19-Feb-2010 02:03:55] 2'Hello world, This is an ⊕ test!'
18[19-Feb-2010 02:03:55] 1'Hello world!'
19[19-Feb-2010 02:03:55] 1'Hello world &oink; This is a perfect test.'
20[19-Feb-2010 02:03:55] 2'Hello world &oink; This is a perfect test.'
21[19-Feb-2010 02:03:55] 1'Hello world!'
22[19-Feb-2010 02:03:55] 1'Hello world wp_kses_named_entities This is a fun test.'
23[19-Feb-2010 02:03:55] 1'Hello world!'
24[19-Feb-2010 02:03:55] 1'testing123456  :)  ogogadfskjd   <code>wuzzup</code>'
25[19-Feb-2010 02:03:55] 2'testing123456  :)  ogogadfskjd   &lt;code&gt;wuzzup&lt;/code&gt;'
26[19-Feb-2010 02:03:55] 1':)'
27[19-Feb-2010 02:03:55] 1'Hello world!'
28[19-Feb-2010 02:03:55] 1'Testing 1234 <a href="http://www.google.com/" rel="nofollow">fskfjld</a>'
29[19-Feb-2010 02:03:55] 2'Testing 1234 &lt;a href=&quot;http://www.google.com/&quot; rel=&quot;nofollow&quot;&gt;fskfjld&lt;/a&gt;'
30[19-Feb-2010 02:03:55] 1'Hello world!'
31[19-Feb-2010 02:03:55] 1'This is a test comment "www.google.com"'
32[19-Feb-2010 02:03:55] 2'This is a test comment &quot;www.google.com&quot;'
33[19-Feb-2010 02:03:55] 1'Hello world!'
34[19-Feb-2010 02:03:55] 1'This is a test comment <a>oinks</a>'
35[19-Feb-2010 02:03:55] 2'This is a test comment &lt;a&gt;oinks&lt;/a&gt;'
36[19-Feb-2010 02:03:55] 1'Hello world!'
37[19-Feb-2010 02:03:55] 1'This is a test comment <a href="http://www.google.com" rel="nofollow">moooo</a>'
38[19-Feb-2010 02:03:55] 2'This is a test comment &lt;a href=&quot;http://www.google.com&quot; rel=&quot;nofollow&quot;&gt;moooo&lt;/a&gt;'
39[19-Feb-2010 02:03:55] 1'Hello world!'
40[19-Feb-2010 02:03:55] 1'Hi, this is a comment.<br />To delete a comment, just log in and view the post&#039;s comments. There you will have the option to edit or delete them.'
41[19-Feb-2010 02:03:55] 2'Hi, this is a comment.&lt;br /&gt;To delete a comment, just log in and view the post&#039;s comments. There you will have the option to edit or delete them.'
42
43
44I/O after patch:
45
46[19-Feb-2010 02:37:55] 1'UTF-8'
47[19-Feb-2010 02:37:55] 1'UTF-8'
48[19-Feb-2010 02:37:55] 1'UTF-8'
49[19-Feb-2010 02:37:55] 1''
50[19-Feb-2010 02:37:55] 1'UTF-8'
51[19-Feb-2010 02:37:55] 1'Hello world!'
52[19-Feb-2010 02:37:55] 1'This is another &#38;amp; neato test.'
53[19-Feb-2010 02:37:55] 2'This is another &amp; neato test.'
54[19-Feb-2010 02:37:55] 1'Hello world!'
55[19-Feb-2010 02:37:55] 1'Hello world, This is an &#8853; test!'
56[19-Feb-2010 02:37:55] 2'Hello world, This is an &#8853; test!'
57[19-Feb-2010 02:37:55] 1'Hello world!'
58[19-Feb-2010 02:37:55] 1'Hello world &#38;oink; This is a perfect test.'
59[19-Feb-2010 02:37:55] 2'Hello world &amp;oink; This is a perfect test.'
60[19-Feb-2010 02:37:55] 1'Hello world!'
61[19-Feb-2010 02:37:55] 1'Hello world wp_kses_named_entities This is a fun test.'
62[19-Feb-2010 02:37:55] 1'Hello world!'
63[19-Feb-2010 02:37:55] 1'testing123456  :)  ogogadfskjd   <code>wuzzup</code>'
64[19-Feb-2010 02:37:55] 2'testing123456  :)  ogogadfskjd   &lt;code&gt;wuzzup&lt;/code&gt;'
65[19-Feb-2010 02:37:55] 1':)'
66[19-Feb-2010 02:37:55] 1'Hello world!'
67[19-Feb-2010 02:37:55] 1'Testing 1234 <a href="http://www.google.com/" rel="nofollow">fskfjld</a>'
68[19-Feb-2010 02:37:55] 2'Testing 1234 &lt;a href=&quot;http://www.google.com/&quot; rel=&quot;nofollow&quot;&gt;fskfjld&lt;/a&gt;'
69[19-Feb-2010 02:37:55] 1'Hello world!'
70[19-Feb-2010 02:37:55] 1'This is a test comment "www.google.com"'
71[19-Feb-2010 02:37:55] 2'This is a test comment &quot;www.google.com&quot;'
72[19-Feb-2010 02:37:55] 1'Hello world!'
73[19-Feb-2010 02:37:55] 1'This is a test comment <a>oinks</a>'
74[19-Feb-2010 02:37:55] 2'This is a test comment &lt;a&gt;oinks&lt;/a&gt;'
75[19-Feb-2010 02:37:55] 1'Hello world!'
76[19-Feb-2010 02:37:55] 1'This is a test comment <a href="http://www.google.com" rel="nofollow">moooo</a>'
77[19-Feb-2010 02:37:55] 2'This is a test comment &lt;a href=&quot;http://www.google.com&quot; rel=&quot;nofollow&quot;&gt;moooo&lt;/a&gt;'
78[19-Feb-2010 02:37:55] 1'Hello world!'
79[19-Feb-2010 02:37:55] 1'Hi, this is a comment.<br />To delete a comment, just log in and view the post&#039;s comments. There you will have the option to edit or delete them.'
80[19-Feb-2010 02:37:55] 2'Hi, this is a comment.&lt;br /&gt;To delete a comment, just log in and view the post&#039;s comments. There you will have the option to edit or delete them.'