webvirtcloud
webvirtcloud copied to clipboard
[Bug and fix] can't add dir that contain "."
what I met
In "computes - <ID> - storage", I tried to add a dir called /mnt/HDD.ori/KVM but it failed
what I did to fix that
open /srv/webvirtcloud/storages/templates/create_stg_block.html
modity the regex of the input box (near Line 66)
from:
[a-zA-Z0-9\/\-_]+
to:
[a-zA-Z0-9\/\-_.]+
# -------------↑ Add a dot here
and it works, I could use it normally.
Hope it may help someone else.