modal requests require csrf-magic.

pull/3790/head
Isaac Connor 2023-12-05 09:47:35 -05:00
parent 803cc8bc1a
commit ccfcd33855
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ if (
( $action != 'login' ) &&
( $view != 'view_video' ) && // only video no html
( $view != 'image' ) && // view=image doesn't return html, just image data.
(!$request) && // requests are ajax and can only return json.
(!$request or ($request == 'modal')) && // requests are ajax and can only return json.
//( $view != 'frames' ) && // big html can overflow ob
( $view != 'archive' ) // returns data
&& ( (!isset($_SERVER['CONTENT_TYPE']) or ($_SERVER['CONTENT_TYPE'] != 'application/csp-report')) )