AnsweredAssumed Answered

Usercheck - special char in variable value breaks href

Question asked by Jacques Speliers on Feb 8, 2018
Latest reply on May 8, 2018 by Jacques Speliers

Hello everyone,

 

Customizing Anti-bot Blocked Usercheck. HTML coding below.  I am triggering the anti-bot check by going to the Checkpoint testing URL. I get the Usercheck page but having some issues. I created a hyperlink that will build an email response (href="mailto:). My href seems to break when I add the $orig_url$ or $activity$ variable. On my blocked page I either get a broken link display text from the line, or the body stop dispalying the rest of the variable value, from what I guess, is a special character. The href below is the ultimate goal but variables orig_url and activity are giving me grief. They however display fine on the blocked page.  Has anybody come across this issue?

 

<SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?>
<P><SPAN style="FONT-FAMILY: " FONT-SIZE: Arial?,?sans-serif?; 10pt?>Your computer is possibly trying to access a malicious server<SPAN style="COLOR: #1f497d"><FONT color=#000000>. It may be infected by malware.</FONT></SPAN></SPAN><SPAN class=smartcontrol1><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt? COLOR: windowtext;><?xml:namespace prefix = "o" ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></SPAN></P>
<P><SPAN style="FONT-FAMILY: " FONT-SIZE: Arial?,?sans-serif?; 10pt?> </SPAN></P>
<P><SPAN style="FONT-FAMILY: " FONT-SIZE: Arial?,?sans-serif?; 10pt?></SPAN></P>
<P><A href="mailto:email@domain.ca&amp;subject=Possible%20malicious%20bot%20activity&amp;body=Workstation%20IP:%20$src_ip$%20attempted%20to%20access%20malicious%20site:%20%0A%0AActivity:%20$activity$%0A%0APlease%20assign%20incident%20ticket%20to%20Information%20Security%20Department.%0A%0AFor%20details,%20please%20contact%20$user_name$%0A%0A">Click here to send email notification to Service Desk</A></P>
<P><SPAN style="FONT-FAMILY: ?></SPAN></P>&#13;&#10;<P><SPAN style=" FONT-SIZE: Arial?,?sans-serif?; 10pt? ? FONT-FAMILY:></SPAN></P><SPAN style="FONT-FAMILY: " FONT-SIZE: Arial?,?sans-serif?; 10pt?><o:p>
<P> </P>
<P> </P>
<P>Activity: <SPAN id=activity class="smartField activity" contentEditable="false" UNSELECTABLE="on">Activity</SPAN></P></o:p></SPAN>
<P></SPAN></P>
<P><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?></SPAN></SPAN></SPAN></P>
<P><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?></SPAN></SPAN></SPAN></P>
<P><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?></SPAN></SPAN></SPAN></P>
<P></P>
<P><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?>URL: <SPAN id=orig_url class="smartField orig_url" contentEditable="false" UNSELECTABLE="on">Original URL</SPAN></SPAN></SPAN></SPAN></P>
<P><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?><SPAN style="FONT-FAMILY: " Calibri?,?sans-serif?; FONT-SIZE: 11pt?> </SPAN></SPAN></SPAN></P>

Outcomes