We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e65f375 commit c842a0dCopy full SHA for c842a0d
file_echo.php
@@ -67,12 +67,16 @@
67
68
} else if (isset($_REQUEST['monitorconfig'])) {
69
/* For monitor chart config export */
70
- PMA_downloadHeader('monitor.cfg', 'application/force-download');
+ PMA_downloadHeader('monitor.cfg', 'application/json; charset=UTF-8');
71
+ header('X-Content-Type-Options: nosniff');
72
+
73
echo urldecode($_REQUEST['monitorconfig']);
74
75
} else if (isset($_REQUEST['import'])) {
76
/* For monitor chart config import */
- header('Content-type: text/plain');
77
+ header('Content-Type: application/json; charset=UTF-8');
78
79
80
if (!file_exists($_FILES['file']['tmp_name'])) {
81
exit();
82
}
0 commit comments