diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-08-10 21:14:37 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-08-10 21:14:37 +0200 |
commit | ba3db8e7a1d9b05687cb96e2d7b671c08f97c922 (patch) | |
tree | 2152d776b9523bea29553323587cae49f389deda /src/modules/urlnormalizer/simpleurl/SimpleURLNormalizer.cpp | |
parent | 2b15ea93c0afd872b60cea94fa3c9e585919305c (diff) | |
download | crawler-ba3db8e7a1d9b05687cb96e2d7b671c08f97c922.tar.gz crawler-ba3db8e7a1d9b05687cb96e2d7b671c08f97c922.tar.bz2 |
fixed simle url normalizer and it's tests
Diffstat (limited to 'src/modules/urlnormalizer/simpleurl/SimpleURLNormalizer.cpp')
-rwxr-xr-x[-rw-r--r--] | src/modules/urlnormalizer/simpleurl/SimpleURLNormalizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/urlnormalizer/simpleurl/SimpleURLNormalizer.cpp b/src/modules/urlnormalizer/simpleurl/SimpleURLNormalizer.cpp index 414adf1..87b3794 100644..100755 --- a/src/modules/urlnormalizer/simpleurl/SimpleURLNormalizer.cpp +++ b/src/modules/urlnormalizer/simpleurl/SimpleURLNormalizer.cpp @@ -18,12 +18,12 @@ URL SimpleURLNormalizer::parseUrl( const string s ) if( s.empty( ) ) { return URL::Null; } - + // protocol string protocol; string::const_iterator protocolStart = s.begin( ); string::const_iterator protocolEnd = find( protocolStart, s.end( ), ':' ); - if( protocolStart == s.end( ) ) { + if( protocolEnd == s.end( ) ) { // no protocol separator ':', not really legal return URL::Null; } |