summaryrefslogtreecommitdiffstats
path: root/examples/consumer/finish_auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'examples/consumer/finish_auth.php')
-rw-r--r--examples/consumer/finish_auth.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/consumer/finish_auth.php b/examples/consumer/finish_auth.php
index 83a2939..c51b9ec 100644
--- a/examples/consumer/finish_auth.php
+++ b/examples/consumer/finish_auth.php
@@ -20,8 +20,12 @@ if ($status != Auth_OpenID_SUCCESS) {
if ($info) {
// This means the authentication succeeded.
$openid = $info;
- $success = sprintf("You have successfully verified %s as your identity.",
- $openid);
+ $esc_identity = htmlspecialchars($openid, ENT_QUOTES);
+ $success = sprintf('You have successfully verified ' .
+ '<a href="%s">%s</a> as your identity.',
+ $esc_identity,
+ $esc_identity
+ );
} else {
// This means the authentication was ancelled.
$msg = 'Verification cancelled.';