]> 91.132.146.200 Git - insipid.git/commitdiff
FF_EXT: Fixed a bug in tags suggestion where double quotes were not properly escaped.
authordannym <dannymiles2@gmail.com>
Sun, 11 Apr 2010 20:07:58 +0000 (22:07 +0200)
committerdannym <dannymiles2@gmail.com>
Sun, 11 Apr 2010 20:07:58 +0000 (22:07 +0200)
ff_ext/inspd@danny/chrome/inspd/content/v2/altpost/altpost_trigger.js

index 8f69d2e3d5692aef9f63edf3e7882077e895e899..5239e1625c22f95e9ba3254d4ac0329a08ee9f18 100644 (file)
@@ -156,10 +156,13 @@ var $altp = {
                        return txtTagsObj; \r
                }\r
                for(var i = 0;i<j;i++){\r
-                               txtTagsObj +='"'+$utils.trim(tagsfromtbl_all_anchors[i].title.replace(/\((.*)\)/,'')).toLowerCase()+'"';\r
+                               var tag_name = $utils.trim(tagsfromtbl_all_anchors[i].title.replace(/\((.*)\)/,'')).toLowerCase() ;  \r
+                               tag_name = tag_name.replace(/"/g,'\\"');\r
+                               //alert(tag_name);\r
+                               txtTagsObj +='"'+tag_name+'"';\r
                                if (i < j-1 ){txtTagsObj += ',';}\r
                }\r
-               txtTagsObj += ']';\r
+               txtTagsObj += '];';\r
                // alert(txtTagsObj);\r
                }\r
                catch(e){\r