Skip to content

Commit

Permalink
setting content type to fix possible XSS attack vector
Browse files Browse the repository at this point in the history
  • Loading branch information
serghey-rodin committed Apr 12, 2019
1 parent 576a000 commit c28c5d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/file_manager/fm_api.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

// Init
//error_reporting(NULL);

header('Content-Type: application/json');

include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
include($_SERVER['DOCUMENT_ROOT']."/file_manager/fm_core.php");
Expand Down

1 comment on commit c28c5d2

@AysadKozanoglu
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.