Skip to content

Commit

Permalink
https://github.com/WWBN/AVideo/issues/9510
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Oct 15, 2024
1 parent b33e783 commit 9d35965
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7390,7 +7390,7 @@ function storeAndGetExternalReferrer()
// Check if the session does not have an external referrer or if it's different from the current one
if (!isset($_SESSION['external_referrer']) || $_SESSION['external_referrer'] !== $sanitizedReferrer) {
if (!empty($sanitizedReferrer)) {
_error_log('external_referrer changed' . json_encode(debug_backtrace()), AVideoLog::$ERROR);
_error_log('external_referrer changed' . json_encode(debug_backtrace()));
// Store the sanitized and escaped external referrer in the session
$_SESSION['external_referrer'] = htmlspecialchars($sanitizedReferrer, ENT_QUOTES, 'UTF-8');
}
Expand Down

0 comments on commit 9d35965

Please sign in to comment.