Fixes #2574 - namespace pollution on 'search' variable (1.0rc1)

- There was a typo in the var declaration in makeUrlAbsolute(). Changed the ';' in the middle of the declaration to ','.
This commit is contained in:
Kin Blas 2011-09-30 09:17:05 -07:00
parent 5b1294f7c4
commit bafc18723b

View file

@ -134,7 +134,7 @@
var relObj = path.parseUrl( relUrl ),
absObj = path.parseUrl( absUrl ),
protocol = relObj.protocol || absObj.protocol,
doubleSlash = relObj.protocol ? relObj.doubleSlash : ( relObj.doubleSlash || absObj.doubleSlash );
doubleSlash = relObj.protocol ? relObj.doubleSlash : ( relObj.doubleSlash || absObj.doubleSlash ),
authority = relObj.authority || absObj.authority,
hasPath = relObj.pathname !== "",
pathname = path.makePathAbsolute( relObj.pathname || absObj.filename, absObj.pathname ),