Corrected a bug when there was quotes in page title.

This commit is contained in:
Laurent Espitallier 2017-07-22 16:28:03 +02:00
parent 73c2b7c4a0
commit 399fb099dc

View File

@ -22,7 +22,7 @@ function shareURL(){
rawUrl = decodeURIComponent(rawUrl); rawUrl = decodeURIComponent(rawUrl);
} }
var url = instance + "/bookmarks.php?action=add&address=" + encodeURIComponent(rawUrl) + "&title=" + tabs[0].title; var url = instance + "/bookmarks.php?action=add&address=" + encodeURIComponent(rawUrl) + "&title=" + encodeURIComponent(tabs[0].title);
widthInt = Number(windowWidth); widthInt = Number(windowWidth);
heightInt = Number(windowHeight); heightInt = Number(windowHeight);