[rt-users] url encoding

Emmanuel Lacour elacour at easter-eggs.com
Wed Jun 22 04:59:31 EDT 2016


Le 22/06/2016 à 10:48, Christian Loos a écrit :
>> https://umbc.co1.qualtrics.com/SE/?SID=SV_4IbNK0n1unOaIEB&groupid=BSG&ticketid={$Ticket->Id}&ticketowner={$Ticket->OwnerObj->EmailAddress}&customeremail={$Ticket->RequestorAddresses}&ticketsubject={uri_escape($Ticket->Subject)}
> 
> I would use the /Elements/QueryString RT component here, which will do
> all the funny URI encoding and parameter concatenation for you:
> 
> {
> my $query_string = $m->comp('/Elements/QueryString',
>     SID           => 'SV_4IbNK0n1unOaIEB',
>     groupid       => 'BSG',
>     ticketid      => $Ticket->Id,
>     ticketowner   => $Ticket->OwnerObj->EmailAddress,
>     customeremail => $Ticket->RequestorAddresses,
>     ticketsubject => $Ticket->Subject,
> );
> }
> 
> https://umbc.co1.qualtrics.com/SE/?{$query_string}
>


Nice idea, but is $m available in RT templates (never tried) ?



More information about the rt-users mailing list