From: Adam Dickmeiss Date: Fri, 30 Nov 2012 17:50:03 +0000 (+0000) Subject: zoom: fix http:// check X-Git-Tag: v1.3.52~1 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=fe3058de676f75bafacf90d60f2d0e50a8183b45;p=metaproxy-moved-to-github.git zoom: fix http:// check --- diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index d2ffb67..6a25157 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -1424,7 +1424,7 @@ yf::Zoom::BackendPtr yf::Zoom::Frontend::get_backend_from_databases( if (sptr->sru.length()) { b->set_option("sru", sptr->sru); - if (url.find_first_of("://") == std::string::npos) + if (url.find("://") == std::string::npos) url = "http://" + url; if (sptr->sru_version.length()) b->set_option("sru_version", sptr->sru_version);