diff options
author | Robert S. Gerus <ar@bash.org.pl> | 2015-12-23 10:08:45 +0100 |
---|---|---|
committer | Robert S. Gerus <ar@bash.org.pl> | 2015-12-23 10:08:45 +0100 |
commit | 055cb0328a826cc572f7356102d848b166bd31be (patch) | |
tree | 6ef445aaafce5daf6b9ae42da8726a3dba0fd701 | |
parent | 3b083c205bf7f5686544c102fe1ecb4ba079e70e (diff) | |
download | gorepost-055cb0328a826cc572f7356102d848b166bd31be.tar.gz gorepost-055cb0328a826cc572f7356102d848b166bd31be.tar.bz2 gorepost-055cb0328a826cc572f7356102d848b166bd31be.tar.xz gorepost-055cb0328a826cc572f7356102d848b166bd31be.zip |
path.Join() stripps multiple slashes.
-rw-r--r-- | bot/urltitle.go | 2 |
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 { |