X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Ffilter_zoom.cpp;h=d3bc5b1cfd3c9a3859f8abf0409fe5676045845d;hb=8ced8e7b5de3ecba12ac68ce5c5e8cddf40d800f;hp=d2ffb67d2f0459a3a9d480c9b8dd859b1de8f3a8;hpb=62e536f8fbe95a1e29a54d6f9638b7b3b9582570;p=metaproxy-moved-to-github.git diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index d2ffb67..d3bc5b1 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2012 Index Data + Copyright (C) 2005-2013 Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -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);