mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[security/229] Add ajax prefilter for crossdomain requests
SECURITY-229
This commit is contained in:
parent
97c5861d59
commit
179c6067be
1 changed files with 7 additions and 0 deletions
|
@ -20,6 +20,13 @@ var phpbbAlertTimer = null;
|
||||||
|
|
||||||
phpbb.isTouch = (window && typeof window.ontouchstart !== 'undefined');
|
phpbb.isTouch = (window && typeof window.ontouchstart !== 'undefined');
|
||||||
|
|
||||||
|
// Add ajax pre-filter to prevent cross-domain script execution
|
||||||
|
$.ajaxPrefilter(function(s) {
|
||||||
|
if (s.crossDomain) {
|
||||||
|
s.contents.script = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display a loading screen
|
* Display a loading screen
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue