Remove csrf token from url when updating url in device page (#11180)

* Remove csrf token from url when updating

* oneline
This commit is contained in:
Tony Murray
2020-02-24 02:19:07 -06:00
committed by GitHub
parent 40cac40aec
commit 70fb8ef62b

View File

@@ -387,7 +387,7 @@ if ($format == "graph") {
"<div class='form-group'><select name='location' id='location' class='form-control'></select></div>" +
"<div class='form-group'><select name='type' id='device-type' class='form-control'></select></div>" +
"<input type='submit' class='btn btn-info' value='Search'>" +
"<a href='<?php echo generate_url($vars) ?>' title='Update the browser URL to reflect the search criteria.' class='btn btn-default'>Update URL</a>" +
"<a href='<?php echo generate_url(array_diff_key($vars, ['_token' => 1])) ?>' title='Update the browser URL to reflect the search criteria.' class='btn btn-default'>Update URL</a>" +
"<a href='<?php echo generate_url(array('page' => 'devices', 'section' => $vars['section'], 'bare' => $vars['bare'])) ?>' title='Reset criteria to default.' class='btn btn-default'>Reset</a>" +
"</form>" +
"</div>"