forked from MapComplete/MapComplete
Add another forbidden character
This commit is contained in:
parent
b864d44fda
commit
3fe581e4af
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ export class OsmPreferences {
|
||||||
|
|
||||||
public GetPreference(key: string, prefix: string = "mapcomplete-"): UIEventSource<string> {
|
public GetPreference(key: string, prefix: string = "mapcomplete-"): UIEventSource<string> {
|
||||||
key = prefix + key;
|
key = prefix + key;
|
||||||
key = key.replace(/[:\\\/"' {}.%]/g, '')
|
key = key.replace(/[:\\\/"' {}.%_]/g, '')
|
||||||
if (key.length >= 255) {
|
if (key.length >= 255) {
|
||||||
throw "Preferences: key length to big";
|
throw "Preferences: key length to big";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue