Fixing XSS vulnerability by using the proper output tags
This commit is contained in:
@@ -3,7 +3,7 @@ DO NOT MODIFY THIS FILE. THINGS WILL BREAK IF YOU DO
|
||||
--}}
|
||||
<script>
|
||||
@if (Auth::user())
|
||||
const PHPVMS_USER_API_KEY = "{!! Auth::user()->api_key !!}";
|
||||
const PHPVMS_USER_API_KEY = "{{ Auth::user()->api_key }}";
|
||||
@else
|
||||
const PHPVMS_USER_API_KEY = false;
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user