Welcome Guest, Not a member yet? Register   Sign In
url encode
#8

(09-30-2022, 09:24 AM)donpwinston Wrote: No. 
:any allows an arbitrary number of segments. That's not what I want. I need '/data/report/some_file.txt' to be one segment. To do so I need to url encode it. CodeIgniter is decoding it for some reason.

'/data/report/some_file.txt' is not a segment, but three segments.

The solutions I can come up with are:

1. Use query string, not URI segment
2. Use another encoding method that is safe as URI, not URL encoding

CI4 probably encodes/decodes URI string for normalizing the URI.
Reply


Messages In This Thread
url encode - by donpwinston - 09-28-2022, 02:08 AM
RE: url encode - by kenjis - 09-28-2022, 08:39 PM
RE: url encode - by donpwinston - 09-29-2022, 05:15 PM
RE: url encode - by kenjis - 09-29-2022, 06:54 PM
RE: url encode - by donpwinston - 09-29-2022, 10:56 PM
RE: url encode - by kenjis - 09-29-2022, 11:32 PM
RE: url encode - by donpwinston - 09-30-2022, 09:24 AM
RE: url encode - by kenjis - 09-30-2022, 02:08 PM
RE: url encode - by donpwinston - 10-01-2022, 08:58 AM
RE: url encode - by heriniaina - 10-02-2022, 11:18 AM
RE: url encode - by donpwinston - 10-14-2022, 10:47 AM
RE: url encode - by donpwinston - 10-19-2022, 12:45 PM
RE: url encode - by ikesela - 10-19-2022, 05:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB