diff --git a/examples/oauth.php b/examples/oauth.php index 5018a633d..9570fd809 100644 --- a/examples/oauth.php +++ b/examples/oauth.php @@ -29,7 +29,7 @@ $error = $_GET['error']; $error_description = $_GET['error_description']; - echo "
Error: code=$error, description=$error_description
\n"; + echo "Error: code=" . htmlspecialchars($error, ENT_QUOTES) . ", description=" . htmlspecialchars($error_description, ENT_QUOTES) . "
\n"; echo "Click here to restart the OAuth flow.
\n"; } elseif (isset($_GET['deauth'])) { @@ -44,7 +44,7 @@ exit("Error: " . $e->getMessage()); } - echo "Success! Account $accountId
is disonnected.
Success! Account " . htmlspecialchars($accountId, ENT_QUOTES) . "
is disconnected.
Click here to restart the OAuth flow.
\n"; } else {