From fe3058de676f75bafacf90d60f2d0e50a8183b45 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 30 Nov 2012 17:50:03 +0000 Subject: [PATCH] zoom: fix http:// check --- src/filter_zoom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.7.10.4