Fixed: escape '/' in preg_quote of asset tag prefix (Applied #16542 to develop)
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
495b7db72b
commit
04ccfc3002
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@
|
|||
|
||||
e.preventDefault();
|
||||
|
||||
var auto_tag = $("#asset_tag").val().replace(/^{{ preg_quote(App\Models\Setting::getSettings()->auto_increment_prefix) }}/g, '');
|
||||
var auto_tag = $("#asset_tag").val().replace(/^{{ preg_quote(App\Models\Setting::getSettings()->auto_increment_prefix, '/') }}/g, '');
|
||||
var box_html = '';
|
||||
const zeroPad = (num, places) => String(num).padStart(places, '0');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue