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 1f56852 commit a26c3deCopy full SHA for a26c3de
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(/[\s\(\)\[\]\{\}\*\"\'\`<>.:;=&|]/g,"");
+ return current.replace(/[\s()[\]{}*"'`<>.:;=&|]/g,"");
32
}
33
34
const localStoredTheme = getSettingValue("theme");
0 commit comments