diff options
author | mikl <> | 2008-10-15 18:07:16 +0000 |
---|---|---|
committer | mikl <> | 2008-10-15 18:07:16 +0000 |
commit | 0c32dad370fb228c36baddd6d7af295aff28f7e8 (patch) | |
tree | 31f87fc5afd5601c37f2c081e74af2997f3c3a9c /tests/FunctionalTests/tickets/protected/pages | |
parent | 3dc2a1c23cefab8eec0fc564ac7ca421e8e357e1 (diff) |
Fixed #922
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages')
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket922.page | 12 | ||||
-rw-r--r-- | tests/FunctionalTests/tickets/protected/pages/Ticket922.php | 13 |
2 files changed, 25 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket922.page b/tests/FunctionalTests/tickets/protected/pages/Ticket922.page new file mode 100644 index 00000000..87932680 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket922.page @@ -0,0 +1,12 @@ +<com:TContent ID="Content"> + +<h1>Problem with TUrlMapping and urlencoding</h1> + +Enter a string with spaces that will be used as URL parameter +<com:TTextBox ID="Text" /> +<com:TButton Text="Perform redirect" OnClick="processString" /> + +<br /> +Decoded String: +<com:TLabel ID="Result" /> +</com:TContent> diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket922.php b/tests/FunctionalTests/tickets/protected/pages/Ticket922.php new file mode 100644 index 00000000..52d4e411 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected/pages/Ticket922.php @@ -0,0 +1,13 @@ +<?php +class Ticket922 extends TPage { + public function processString($sender,$param) { + $text = $this->Text->Text; + $url= $this->getService()->constructUrl('Ticket922', array('text'=>$text)); + $this->getResponse()->redirect($url); + } + + public function onLoad($param) { + if ($this->Request->contains('text')) + $this->Result->setText($this->Request->itemAt('text')); + } +} |