Skip to content
Permalink
Browse files

Cosmetic fixes

  • Loading branch information
elpaso committed Feb 21, 2018
1 parent f1b5987 commit 31428242da12d4b7c35a5a520c58888404b915a1
Showing with 3 additions and 4 deletions.
  1. +1 −1 src/providers/wfs/qgswfsdatasourceuri.h
  2. +2 −3 tests/src/python/test_provider_wfs.py
@@ -90,7 +90,7 @@ class QgsWFSDataSourceURI
//! Return base URL (with SERVICE=WFS parameter if bIncludeServiceWFS=true)
QUrl baseURL( bool bIncludeServiceWFS = true ) const;

//! Return request URL with SERVICE=WFS parameter)
//! Return request URL (with SERVICE=WFS parameter)
QUrl requestUrl( const QString &request, const Method &method = Method::Get ) const;

//! Get WFS version. Can be auto, 1.0.0, 1.1.0 or 2.0.0.
@@ -44,11 +44,10 @@
def sanitize(endpoint, x):
if len(endpoint + x) > 256:
ret = endpoint + hashlib.md5(x.encode()).hexdigest()
print('Before: ' + endpoint + x)
print('After: ' + ret)
#print('Before: ' + endpoint + x)
#print('After: ' + ret)
return ret
ret = endpoint + x.replace('?', '_').replace('&', '_').replace('<', '_').replace('>', '_').replace('"', '_').replace("'", '_').replace(' ', '_').replace(':', '_').replace('/', '_').replace('\n', '_')
print('After: ' + ret)
return ret


0 comments on commit 3142824

Please sign in to comment.
You can’t perform that action at this time.