forked from pool/libproxy
Add trim patch... we released this as an update on 11.4 already, then missed it in 12.1... again a maintenance update running... include it in Factory now so we don't loose it again OBS-URL: https://build.opensuse.org/request/show/102423 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libproxy?expand=0&rev=74
14 lines
596 B
Diff
14 lines
596 B
Diff
Index: libproxy/proxy.cpp
|
|
===================================================================
|
|
--- libproxy/proxy.cpp (revision 819)
|
|
+++ libproxy/proxy.cpp (working copy)
|
|
@@ -268,6 +268,7 @@
|
|
if (next == string::npos) next = confign.length();
|
|
if (next > (i+1)) {
|
|
string ignorestr = confign.substr (i, next - i);
|
|
+ ignorestr = ignorestr.substr(ignorestr.find_first_not_of(" \t\n"), ignorestr.find_last_not_of(" \t\n")+1);
|
|
for (vector<ignore_extension*>::iterator it=ignores.begin() ; it != ignores.end() && !ignored ; it++)
|
|
ignored = ((*it)->ignore(*realurl, ignorestr));
|
|
}
|
|
|