mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 00:04:43 +02:00
Sanitize bookmark names
This commit is contained in:
parent
da58d5a381
commit
1ffe22d5e9
1 changed files with 4 additions and 0 deletions
|
@ -1031,6 +1031,10 @@ void Menu::bookmarkLocation() {
|
|||
}
|
||||
|
||||
QString bookmarkName = bookmarkLocationDialog.textValue().trimmed();
|
||||
bookmarkName = bookmarkName.replace("\r\n", " ");
|
||||
bookmarkName = bookmarkName.replace("\n", " ");
|
||||
bookmarkName = bookmarkName.replace("\r", " ");
|
||||
bookmarkName = bookmarkName.replace("\t", " ");
|
||||
if (bookmarkName.length() == 0) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue