On Apr 19, 7:49 pm, christianstrang <[email protected]>
wrote:
> That is a good solution but I don't want to convert the tag, but keep
> it the way its meant to be.
> My only problem is, that the param in the url is cut off and so the
> request doesn't work.
> But I thought, if I use this (.*) in my route, every character is
> accepted?

You have 0 possibility (without js) of seeing an unencoded anchor (the
# and anything after it) from the server, because the server never
receives it.

Relevant to your question is that if you're using apache + rewrite, it
(url)decodes before rewriting so unless you double url encode
 c++ -> c%2B%2B -> c%252B%252B
you can't see the originally intended text.

if you want to see the untampered url you can refer directly to
$_SERVER['request_url']
or, alternately just use a different encoding, such as base64_encode/
decode

Probably the best solution is to use something bespoke for # (such as
replacing with sharp) and just refer to $_SERVER['request_url']. You
could do so in your search controller or in bootstrap refering to $url

hth

AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to