Mercurial > hg > nginx-tests
comparison rewrite_unescape.t @ 596:e36b267021e3
Tests: partially reverted 6cdfd177319b.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 28 May 2015 15:31:48 +0300 |
parents | 6cdfd177319b |
children | e9064d691790 |
comparison
equal
deleted
inserted
replaced
595:6cdfd177319b | 596:e36b267021e3 |
---|---|
70 | 70 |
71 $t->run(); | 71 $t->run(); |
72 | 72 |
73 ############################################################################### | 73 ############################################################################### |
74 | 74 |
75 # Some rewrites and expected (?) behavior | 75 # Some rewrites and expected (?) behaviour |
76 # | 76 # |
77 # /t1?r=http%3A%2F%2Fexample.com%2F%3Ffrom | 77 # /t1?r=http%3A%2F%2Fexample.com%2F%3Ffrom |
78 # rewrite ^ $arg_r? redirect; | 78 # rewrite ^ $arg_r? redirect; |
79 # expected: http://example.com/?from | 79 # expected: http://example.com/?from |
80 # got: http://example.com/?from | 80 # got: http://example.com/?from |
119 TODO: { | 119 TODO: { |
120 local $TODO = 'not yet'; | 120 local $TODO = 'not yet'; |
121 | 121 |
122 # Fixing this cases will require major changes to the whole approach and | 122 # Fixing this cases will require major changes to the whole approach and |
123 # likely to break some currently working cases. On the other hand, current | 123 # likely to break some currently working cases. On the other hand, current |
124 # behavior is far from acceptable. Should be carefully thought. | 124 # behaviour is far from acceptable. Should be carefully thought. |
125 | 125 |
126 location('/t1?r=http%3A%2F%2Fexample.com%2F%3Ffrom%3Dblah', | 126 location('/t1?r=http%3A%2F%2Fexample.com%2F%3Ffrom%3Dblah', |
127 'http://example.com/?from=blah', 'escaped argument with complex query'); | 127 'http://example.com/?from=blah', 'escaped argument with complex query'); |
128 | 128 |
129 location('/t2/blah%20%3Fblah', | 129 location('/t2/blah%20%3Fblah', |