Jump to content


Photo

X2Flow - Remote API Call

bug staff response

  • Please log in to reply
1 reply to this topic

#1 dbastreghi

dbastreghi

    Newbie

  • Members
  • Pip
  • 8 posts
  • LocationBrazil

Posted 16 March 2017 - 07:17 AM

Hi,

 

Im using X2CRM 6.5.2.

 

The Remote API Call is replacing {email} tag with HTML tag "<a href...". I think its a big problem in most of situations.

 

So I have made a workaround.

 

I edited the file protected/components/x2flow/actions/X2FlowApiCall.php and added this at 210 line:

 

$data = strip_tags(htmlspecialchars_decode($data));

 

I hope it helps. Thanks.



#2 X2Raymond

X2Raymond

    Advanced Member

  • Administrators
  • 939 posts
  • LocationSanta Cruz, CA

Posted 16 March 2017 - 02:42 PM

Hello,

 

I can confirm this bug is present in 6.5.2. The issue was due to the JSON blob being parsed with the default "render" option, which prepares it for rendering in markup. This would only be present in attributes passed using a JSON payload with the Remote API Call action. The fix will be included in the upcoming release, or you can view the diff here: https://github.com/X...5e25604d87040a2. Thank you for reporting this issue!

 

Raymond







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users