aboutsummaryrefslogtreecommitdiffstats
path: root/lib/util.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2010-08-19 23:13:19 -0400
committerMatěj Cepl <mcepl@redhat.com>2010-08-19 23:13:19 -0400
commit7d881cf6e9d5e5589827ecc5c17bdfa78fe2b513 (patch)
tree391a9c2bfaa17ab5d94aea04b9d12b6e281a662a /lib/util.js
parent33fcda043c9639220cd27429410be128363a69c1 (diff)
downloadbugzilla-triage-7d881cf6e9d5e5589827ecc5c17bdfa78fe2b513.tar.gz
Actually really fix #43 and simplification of collecting information.0.20
Release 0.20
Diffstat (limited to 'lib/util.js')
-rw-r--r--lib/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.js b/lib/util.js
index 54af598..76c8a02 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -37,13 +37,13 @@ exports.heir = function heir(p) {
/**
* get parameters of URL as an object (name, value)
*/
-var getParamsFromURL = exports.getParamsFromURL = function getParamsFromURL (url) {
+var getParamsFromURL = exports.getParamsFromURL = function getParamsFromURL (url, base) {
if (!url || (url.toString().length === 0)) {
throw new Error("Missing URL value!");
}
if (!(url instanceof urlMod.URL)) {
- url = new urlMod.URL(url.toString());
+ url = new urlMod.URL(url.toString(), base);
}
var paramsArr = url.path.split("?");