commit 0246e795389297a8f2266d88e3588ccf9833aece parent 40c9e620e70b56723b0dd522ea68c15de66d2709 Author: Dan Stillman <dstillman@zotero.org> Date: Mon, 2 Oct 2006 19:21:25 +0000 Stop appending ".html" to snapshots that already have it (incorrect substr) Diffstat:
| M | chrome/chromeFiles/content/scholar/xpcom/data_access.js | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js @@ -2297,8 +2297,8 @@ Scholar.Attachments = new function(){ // to sometimes get confused // (see #192, https://chnm.gmu.edu/trac/scholar/ticket/192) if (mimeType=='text/html' && - (fileName.substr(0, fileName.length-5)!='.html' - || fileName.substr(0, fileName.length-4)!='.htm')){ + (fileName.substr(fileName.length-5)!='.html' + && fileName.substr(fileName.length-4)!='.htm')){ fileName += '.html'; }