summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert S. Gerus <ar@bash.org.pl>2015-12-23 10:08:45 +0100
committerRobert S. Gerus <ar@bash.org.pl>2015-12-23 10:08:45 +0100
commit055cb0328a826cc572f7356102d848b166bd31be (patch)
tree6ef445aaafce5daf6b9ae42da8726a3dba0fd701
parent3b083c205bf7f5686544c102fe1ecb4ba079e70e (diff)
downloadgorepost-055cb0328a826cc572f7356102d848b166bd31be.tar.gz
gorepost-055cb0328a826cc572f7356102d848b166bd31be.tar.bz2
gorepost-055cb0328a826cc572f7356102d848b166bd31be.zip
path.Join() stripps multiple slashes.
-rw-r--r--bot/urltitle.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/urltitle.go b/bot/urltitle.go
index a359521..f87a863 100644
--- a/bot/urltitle.go
+++ b/bot/urltitle.go
@@ -99,7 +99,7 @@ func fourchanscrape(l string) string {
return "error while correcting permisions"
}
- return path.Join(cfg.LookupString(nil, "FourChanLinkBase"), filename)
+ return cfg.LookupString(nil, "FourChanLinkBase") + "/" + filename
}
func genericURLTitle(l string) string {