Add anti-CSRF token
phpcs-errors:238 phpunit-status:successful
This commit is contained in:
1 parent
5af012ba8b
commit
9d73a9b61e
3 files changed
+45
-6
No files matched your search
@@ -43,6 +43,7 @@
|
||||
|
||||
<div class="uploader">
|
||||
<form enctype="multipart/form-data" action="upload.php" method="POST">
|
||||
<input type="hidden" id="csrf-token" name="csrf-token" aria-label="Anti-CSRF Token" value="' . htmlspecialchars(getAntiCsrfToken()) . '" />
|
||||
<label for="fileToUpload">' . $csvxml_overview['select_csv_file_for_upload'] . '</label>
|
||||
<input name="uploaded" type="file" accept=".csv" id="fileToUpload" required />
|
||||
<button type="submit">' . $csvxml_overview['upload'] . '</button>
|
||||
|
||||
Reference in new issue
Block a user