Fix: auth_start_href() durch direkte Links auf auth/start.php ersetzen

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
xziino 2026-05-22 11:20:17 +02:00
parent cc36aa27c4
commit 5010da4ddb
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ $state = bin2hex(random_bytes(16));
$_SESSION['pkce_verifier'] = $verifier; $_SESSION['pkce_verifier'] = $verifier;
$_SESSION['oauth_state'] = $state; $_SESSION['oauth_state'] = $state;
$_SESSION['oauth_return'] = safe_return_path($_GET['return'] ?? ($_SERVER['HTTP_REFERER'] ?? null)); $_SESSION['oauth_return'] = null;
$params = http_build_query([ $params = http_build_query([
'response_type' => 'code', 'response_type' => 'code',

View File

@ -21,7 +21,7 @@
<?php endif; ?> <?php endif; ?>
</p> </p>
<a href="<?= htmlspecialchars(auth_start_href(), ENT_QUOTES) ?>" class="btn btn-gold btn-login"> <a href="auth/start.php" class="btn btn-gold btn-login">
<?= $tokenExpired ? 'Reconnect to FFLogs' : 'Connect to FFLogs' ?> <?= $tokenExpired ? 'Reconnect to FFLogs' : 'Connect to FFLogs' ?>
</a> </a>

View File

@ -23,7 +23,7 @@
</select> </select>
</div> </div>
<button class="btn btn-gold" type="submit" style="align-self:flex-end">Fetch</button> <button class="btn btn-gold" type="submit" style="align-self:flex-end">Fetch</button>
<a class="btn" href="<?= htmlspecialchars(auth_start_href(), ENT_QUOTES) ?>" style="align-self:flex-end;text-decoration:none">Reconnect</a> <a class="btn" href="auth/start.php" style="align-self:flex-end;text-decoration:none">Reconnect</a>
</div> </div>
</form> </form>
</div> </div>