<commit_before><?php defined('C5_EXECUTE') or die("Access Denied.");

use Concrete\Core\Entity\OAuth\Client; ?>
<?php
/**
 * @var \Concrete\Core\Entity\OAuth\Client $client
 */
$clientSecret = isset($clientSecret) ? $clientSecret : null;

// Make sure the client secret matches this client
if ($clientSecret && !password_verify($clientSecret, $client->getClientSecret())) {
    $clientSecret = null;
}

// Get the consent type from the client
$consentType = $client->getConsentType();
?>

<div class="ccm-dashboard-header-buttons">
    <div class="btn-group">
        <a href="<?=URL::to('/dashboard/system/api/integrations'); ?>" class="btn btn-secondary"><?php echo t('Back to Integrations'); ?></a>
        <button class="btn btn-danger" data-dialog="delete-client"><?=t("Delete")?></button>
        <a href="<?=URL::to('/dashboard/system/api/integrations', 'edit', $client->getIdentifier()); ?>" class="btn btn-primary"><?php echo t('Edit'); ?></a>
    </div>
</div>

<fieldset>
    <legend><?=t('Integration Details')?></legend>

    <div class="mb-3">
        <label class="form-label"><?=t('Name')?></label>
        <div><?=$client->getName()?></div>
    </div>

    <div class="mb-3">
        <label class="form-label"><?=t('Redirect URI(s)')?></label>
        <?php
        $redirectUri = $client->getRedirectUri() ?: t('None provided');
        ?>
        <ul><commit_msg>Fix XSS on API Integrations H1 1753684<commit_after><?php defined('C5_EXECUTE') or die("Access Denied.");

use Concrete\Core\Entity\OAuth\Client; ?>
<?php
/**
 * @var \Concrete\Core\Entity\OAuth\Client $client
 */
$clientSecret = isset($clientSecret) ? $clientSecret : null;

// Make sure the client secret matches this client
if ($clientSecret && !password_verify($clientSecret, $client->getClientSecret())) {
    $clientSecret = null;
}

// Get the consent type from the client
$consentType = $client->getConsentType();
?>

<div class="ccm-dashboard-header-buttons">
    <div class="btn-group">
        <a href="<?=URL::to('/dashboard/system/api/integrations'); ?>" class="btn btn-secondary"><?php echo t('Back to Integrations'); ?></a>
        <button class="btn btn-danger" data-dialog="delete-client"><?=t("Delete")?></button>
        <a href="<?=URL::to('/dashboard/system/api/integrations', 'edit', $client->getIdentifier()); ?>" class="btn btn-primary"><?php echo t('Edit'); ?></a>
    </div>
</div>

<fieldset>
    <legend><?=t('Integration Details')?></legend>

    <div class="mb-3">
        <label class="form-label"><?=t('Name')?></label>
        <div><?=h($client->getName())?></div>
    </div>

    <div class="mb-3">
        <label class="form-label"><?=t('Redirect URI(s)')?></label>
        <?php
        $redirectUri = $client->getRedirectUri() ?: t('None provided');
        ?>
        <ul>
{'fraction_non_alphanumeric': 0.22277936962750716, 'fraction_numerical': 0.00501432664756447, 'mean_word_length': 4.032432432432432, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 83, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4231642', 'n_tokens_mistral': 900, 'n_tokens_neox': 916, 'n_words': 177}