Util.pm: add url_base function to go with url_path
commitc812239d96a7266d0f079c4fcf504f343ffdd9ea
authorKyle J. McKay <mackyle@gmail.com>
Fri, 2 Aug 2013 03:47:13 +0000 (1 20:47 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 2 Aug 2013 03:47:13 +0000 (1 20:47 -0700)
tree552a371d064710784fa7b23d24c79d953f5eb4b8
parentc9838c646972e57f4201f0d40759f807afe47c7d
Util.pm: add url_base function to go with url_path

The url_path function returns only the path (and anything following)
portion of a URL.  Add a new url_base function that returns only the
base of the URL excluding the path (and anything following).

Given a URL in $url, then 'url_base($url).url_path($url) eq $url' is
always true.
Girocco/Util.pm