Skip to content

Instantly share code, notes, and snippets.

@boring-dragon
Created May 14, 2023 14:28
Show Gist options
  • Save boring-dragon/df256ee92f16507df1b37973096e2ce1 to your computer and use it in GitHub Desktop.
Save boring-dragon/df256ee92f16507df1b37973096e2ce1 to your computer and use it in GitHub Desktop.
Spoof OAuth Callback : P
<?php
if (($path = ltrim($_SERVER['REQUEST_URI'], '/')) && !in_array(substr($path, 0, 1), array('?', '#', '/'))) {
header("Location: $path");
exit;
}
?>
@boring-dragon
Copy link
Author

.htaccess

FallbackResource /index.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment