From f2f034c968d00874c234c0ce20bb9a2a978a8e61 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Fri, 10 Sep 2010 21:42:53 +0200 Subject: Make certain that this.bugNo is really numerical value of bug number. Fixes #45 * move getLogin and getPassword to bzpage (upstream bugzilla actually has SOME XML-RPC) * don't test for correct bug number in logger, when we have the bug no. correct in the first place. --- lib/logger.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/logger.js') diff --git a/lib/logger.js b/lib/logger.js index 1175bf8..1936ad5 100644 --- a/lib/logger.js +++ b/lib/logger.js @@ -82,11 +82,6 @@ Logger.prototype.timeSheetRecordsPrinter = function(body, records) { var host = urlMod.URL(x.url).host; var BZName = that.getBugzillaAbbr(x.url); var bugNo = utilMod.getBugNo(x.url); - // protection against misbehaving URLs - if (!bugNo) { - console.error("wrong record:\n" + rec.toSource() + "\n"); - return false; - } if (dayStr != currentDay) { currentDay = dayStr; body.innerHTML += "

" + currentDay -- cgit