From 0c32dad370fb228c36baddd6d7af295aff28f7e8 Mon Sep 17 00:00:00 2001 From: mikl <> Date: Wed, 15 Oct 2008 18:07:16 +0000 Subject: Fixed #922 --- tests/FunctionalTests/tickets/protected/application.xml | 3 ++- .../FunctionalTests/tickets/protected/pages/Ticket922.page | 12 ++++++++++++ tests/FunctionalTests/tickets/protected/pages/Ticket922.php | 13 +++++++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket922.page create mode 100644 tests/FunctionalTests/tickets/protected/pages/Ticket922.php (limited to 'tests/FunctionalTests/tickets/protected') diff --git a/tests/FunctionalTests/tickets/protected/application.xml b/tests/FunctionalTests/tickets/protected/application.xml index 29273a2f..113b8455 100644 --- a/tests/FunctionalTests/tickets/protected/application.xml +++ b/tests/FunctionalTests/tickets/protected/application.xml @@ -1,8 +1,9 @@ - + + 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 @@ + + +

Problem with TUrlMapping and urlencoding

+ +Enter a string with spaces that will be used as URL parameter + + + +
+Decoded String: + +
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 @@ +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')); + } +} -- cgit v1.2.3