Use decodeURIComponent in share plugin rawmarkup (#7204)

This commit is contained in:
btheado
2023-01-12 18:24:32 +00:00
committed by GitHub
parent c7612ff4ce
commit a52da67563
+1 -1
View File
@@ -17,7 +17,7 @@ var rawHash = document.location.hash.substring(1);
if(rawHash.charAt(0) === "#") {
var hash;
try{
hash = $tw.utils.decodeURIComponentSafe(rawHash.substring(1));
hash = decodeURIComponent(rawHash.substring(1));
} catch(ex) {
console.log("Share plugin: Error decoding location hash",ex);
}