Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
class Parameters: Encoding of Name in function Add
Hi Mark,
I want the Name of Parameter not to be encoded when using the Add function of Parameters class.
Is it possible to leave the $Name untouched when passing a 5th parameter?
I need the name to be "PredefindeAttributes[AttributeName]". But with encoding it becomes:
I would be great if you're going to change the function as suggested above!?
I want the Name of Parameter not to be encoded when using the Add function of Parameters class.
Is it possible to leave the $Name untouched when passing a 5th parameter?
function Add($Name, $Value, $EncodeValue = 1, $Id = '', $EncodeName = 1) { if ($EncodeValue && !is_array($Value)) $Value = urlencode($Value); if ($EncodeName) $Name = urlencode($Name); $this->aParameters[$Name] = array("Value" => $Value, "Id" => $Id); }Background:
I need the name to be "PredefindeAttributes[AttributeName]". But with encoding it becomes:
name="PredefinedAttributes%5BAttributeName%5D"
and I can't get the Array back using ForceIncomingArray("PredefinedAttributes", false) than.I would be great if you're going to change the function as suggested above!?
0
This discussion has been closed.
Comments
Add("ParameterName", "ParameterValue", 1, '', 0);
and I get Maybe something wents from with my SVN here. I never used it before working with Vanilla.
The code in my first posting is my suggestion..
It's been done in svn.