We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fe87b5 commit 1f56852Copy full SHA for 1f56852
src/librustdoc/html/static/js/storage.js
@@ -28,7 +28,7 @@ function getSettingValue(settingName) {
28
// This prevents an injection vulnerability where someone could plant
29
// JS code into the localStorage value, which could be executed when
30
// we pull it out.
31
- return current.replace(/[^A-Za-z0-9_-]/g,"");
+ return current.replace(/[\s\(\)\[\]\{\}\*\"\'\`<>.:;=&|]/g,"");
32
}
33
34
const localStoredTheme = getSettingValue("theme");
0 commit comments