mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
ui: fix extension path with name having special characters (#11489)
Fixes #11481 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
76ef8d31f8
commit
3ddd8023d0
@ -135,7 +135,7 @@ export default {
|
|||||||
if (!value || value.length === 0) {
|
if (!value || value.length === 0) {
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
return value.replace(/[^a-zA-Z0-9._-]/g, '').toLowerCase()
|
return value.replace(/[^a-zA-Z0-9._-]/g, '_').toLowerCase()
|
||||||
},
|
},
|
||||||
extenstionBasePath () {
|
extenstionBasePath () {
|
||||||
return (this.$store.getters.features.extensionspath || '[EXTENSIONS_PATH]') + '/' + this.safeName + '/'
|
return (this.$store.getters.features.extensionspath || '[EXTENSIONS_PATH]') + '/' + this.safeName + '/'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user