[rt-users] url encoding

Christian Loos cloos at netcologne.de
Wed Jun 22 04:48:58 EDT 2016


> 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}

Chris



More information about the rt-users mailing list