novnccheck aktualisiert

This commit is contained in:
2024-04-12 10:10:16 +02:00
parent 1299b6b6e8
commit 1970717173

View File

@@ -46,7 +46,7 @@ else
fi
if [ ! -z "${NOVNC_TITLE}" ]; then
if [[ ${NOVNC_TITLE} =~ ^[A-Za-z0-9._ -]+$ ]]; then
if [[ ${NOVNC_TITLE} =~ ^[A-Za-z0-9._[:space:]-]+$ ]]; then
echo "Setting noVNC Title to: ${NOVNC_TITLE}"
sed -i "/ document.title =/c\ document.title = \"${NOVNC_TITLE}\";" /usr/share/novnc/app/ui.js
else