Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What would cause %5B0%5D to be added to the url

Tags:

php

I am trying to track down why a link to remove a filter is not working on my site. And it appears to be because the links are being changed to have %5B0%5D and other varieties of letters and numbers with % added in

from what I gather this is the serialize function causing this?

Is there anything else that might cause that or is it definitely the serialize function?

like image 418
Sackling Avatar asked May 17 '13 15:05

Sackling


2 Answers

It's called Percent-encoding and is used in encoding special characters in the url parameter values.

[0] contains special characters so when encoded it gives %5B0%5D

where %5B represents [ and %5D represent ]

look for [0] in your php .

like image 91
meda Avatar answered Nov 03 '22 04:11

meda


Looks like an Array index to me. Those are url encoded values that are being added in there. It will take some work to figure out where. My suggestion is to step through the code to see what values are building those links.

like image 29
LJ Wilson Avatar answered Nov 03 '22 02:11

LJ Wilson