systemtagsplugin.js generates empty ghost system tags. #39983
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
feature: tags
technical debt
The following piece of code probably doesn't do what was expected if the systemTags data attribute is there but empty:
server/apps/files/js/systemtagsplugin.js
Lines 92 to 94 in a4f3088
The following happens
systemTags
variable will be the empty stringsystemTags?.split?.('|')
will then happily be executed by the browser, calling the split method on this empty string[ '' ]
, i.e. an array containing an empty stringSee
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split?retiredLocale=de#using_split
Please note that the same file here
server/apps/files/js/systemtagsplugin.js
Line 77 in a4f3088
make sure that the systemTags data attribute is defined.
The text was updated successfully, but these errors were encountered: