Using "url.query:decode_base64" CPL substitution causing garbled text in custom exception page or notify page

book

Article ID: 171892

calendar_today

Updated On:

Products

Advanced Secure Gateway Software - ASG ProxySG Software - SGOS

Issue/Introduction

You would like to use the "url.query:decode_base64" in exception pages or notify pages but found that when the page is displayed out, it adds extra garbled messages in the page.

Cause

After SGOS 6.5.8.8 and later, this happens because there is an anti-phishing feature that was added causing the extra garbled text to display out.

Versions before SGOS 6.5.8.8 doesn't see this issue because the anti-phishing feature was not added yet.

Resolution

Use a new substitution variable CPL as per below :

$(url.query:rewrite((.*);(.*), $(1)):decode_base64)

With this new variable the extra garbled text would be gone.