Passing an urlencoded URL as parameter to a controller / action at CakePHP

自作多情 提交于 2019-11-30 22:56:32

I have added a work around this issue. The previous answer that pointed to a post actually answered why it was happening and one of the solutions. What happens is that the workaround for .htaccess on Apache is a bit dangerous because it will disable a security criteria.

There are 2 ways to work this out via code (and I'm using both):

  1. Send all urls as base64 encoded strings
  2. Accept the urls as named params, but, as you will notice, it converts any http:// to http:/, so is necessary to correctly identify when this happens and only then correct the string.

It is far from being a beautiful solution, but it is definitely a practical one.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!