svnno****@sourc*****
svnno****@sourc*****
2007年 9月 15日 (土) 18:39:01 JST
Revision: 219 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=bbs2ch&view=rev&rev=219 Author: flyson Date: 2007-09-15 18:39:01 +0900 (Sat, 15 Sep 2007) Log Message: ----------- BBS_UNICODE=pass ではない板では参照化しない Modified Paths: -------------- trunk/bbs2chreader/chrome/content/bbs2chreader/post.js -------------- next part -------------- Modified: trunk/bbs2chreader/chrome/content/bbs2chreader/post.js =================================================================== --- trunk/bbs2chreader/chrome/content/bbs2chreader/post.js 2007-09-07 15:15:14 UTC (rev 218) +++ trunk/bbs2chreader/chrome/content/bbs2chreader/post.js 2007-09-15 09:39:01 UTC (rev 219) @@ -263,15 +263,17 @@ } if(charset){ var escapedStr = textToSubURI.ConvertAndEscape(charset, aString); - var unescapedStr = textToSubURI.UnEscapeAndConvert(charset, escapedStr); - - if(aString != unescapedStr){ - var charactor = []; - for(var i = 0; i<aString.length; i++){ - var c = (aString[i] == unescapedStr[i]) ? aString[i] : ("&#" + aString.charCodeAt(i) + ";"); - charactor.push(c); + if(this.board.getSetting("BBS_UNICODE") == "pass"){ + var unescapedStr = textToSubURI.UnEscapeAndConvert(charset, escapedStr); + if(aString != unescapedStr){ + var charactor = []; + for(var i = 0; i<aString.length; i++){ + var c = (aString[i]==unescapedStr[i] || aString[i]==" ") ? + aString[i] : ("&#" + aString.charCodeAt(i) + ";"); + charactor.push(c); + } + escapedStr = textToSubURI.ConvertAndEscape(charset, charactor.join("")); } - escapedStr = textToSubURI.ConvertAndEscape(charset, charactor.join("")); } return escapedStr; }