From ad3c6d4cc5368f67ca9407236d789e7fe4d6eee1 Mon Sep 17 00:00:00 2001 From: Michael Merriam Date: Sat, 24 May 2014 14:12:15 -0400 Subject: [PATCH] filter any non-ascii chars from the title value filter any non-ascii chars from the title value, because Delicious does not handle non-ascii chars well. Returns error on POST to addLink --- assets/javascripts/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/popup.js b/assets/javascripts/popup.js index 30f8508..8f98290 100644 --- a/assets/javascripts/popup.js +++ b/assets/javascripts/popup.js @@ -534,7 +534,7 @@ }); controllers.controller('NewLinkCtrl', function ($scope, $location, tab, delicious, analytics) { - $scope.description = tab.title; + $scope.description = tab.title.replace(/[^\x00-\x7F]/g, ""); $scope.header = 'Add link to Delicious'; $scope.myTags = []; $scope.myTagsLoaded = false;