Pass one at unfucking the stupid file encoding issues

This commit is contained in:
Dane Everitt 2020-12-08 21:24:17 -08:00
parent 24417ac516
commit 3e65a2d055
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
10 changed files with 33 additions and 19 deletions

View file

@ -61,7 +61,7 @@ export default () => {
setLoading(true);
clearFlashes('files:view');
fetchFileContent()
.then(content => saveFileContents(uuid, name || hash.replace(/^#/, ''), content))
.then(content => saveFileContents(uuid, name || decodeURI(hash.replace(/^#/, '')), content))
.then(() => {
if (name) {
history.push(`/server/${id}/files/edit#/${name}`);