c2cgeoportal-geoportal 2.9.0.259__py3-none-any.whl → 2.9.0.264__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- c2cgeoportal_geoportal/views/shortener.py +8 -2
- {c2cgeoportal_geoportal-2.9.0.259.dist-info → c2cgeoportal_geoportal-2.9.0.264.dist-info}/METADATA +1 -1
- {c2cgeoportal_geoportal-2.9.0.259.dist-info → c2cgeoportal_geoportal-2.9.0.264.dist-info}/RECORD +6 -6
- {c2cgeoportal_geoportal-2.9.0.259.dist-info → c2cgeoportal_geoportal-2.9.0.264.dist-info}/WHEEL +0 -0
- {c2cgeoportal_geoportal-2.9.0.259.dist-info → c2cgeoportal_geoportal-2.9.0.264.dist-info}/entry_points.txt +0 -0
- {c2cgeoportal_geoportal-2.9.0.259.dist-info → c2cgeoportal_geoportal-2.9.0.264.dist-info}/top_level.txt +0 -0
@@ -90,9 +90,15 @@ class Shortener:
|
|
90
90
|
|
91
91
|
url = self.request.params["url"]
|
92
92
|
|
93
|
+
url_length = len(url)
|
94
|
+
if "#" in url:
|
95
|
+
url_parsed = urlparse(url)
|
96
|
+
if url_parsed.fragment:
|
97
|
+
url_length -= len(url_parsed.fragment) + 1
|
98
|
+
|
93
99
|
# see: https://httpd.apache.org/docs/2.2/mod/core.html#limitrequestline
|
94
|
-
if
|
95
|
-
raise HTTPBadRequest(f"The parameter url is too long ({
|
100
|
+
if url_length > 8190:
|
101
|
+
raise HTTPBadRequest(f"The parameter url is too long ({url_length} > {8190})")
|
96
102
|
|
97
103
|
allowed_hosts = self.settings.get("allowed_hosts", [])
|
98
104
|
url_hostname, ok = is_allowed_url(self.request, url, allowed_hosts)
|
{c2cgeoportal_geoportal-2.9.0.259.dist-info → c2cgeoportal_geoportal-2.9.0.264.dist-info}/RECORD
RENAMED
@@ -170,7 +170,7 @@ c2cgeoportal_geoportal/views/profile.py,sha256=tVQxJ3_eS5HcDCzQm5Loq5WEH62GtMc--
|
|
170
170
|
c2cgeoportal_geoportal/views/proxy.py,sha256=XxOGR8Snqrd1CKkUiK4IjavCR8PiUsd3tlEM9lZE9TI,10468
|
171
171
|
c2cgeoportal_geoportal/views/raster.py,sha256=kY6rYo4SxQP9JLbsq3_kdWdbaTVkdQDdpjrG9lUtAIM,9242
|
172
172
|
c2cgeoportal_geoportal/views/resourceproxy.py,sha256=pcHwU6hAXHeh_Ef6tuHxpRzGje8nqVKUxyZwZKOPCjI,3189
|
173
|
-
c2cgeoportal_geoportal/views/shortener.py,sha256=
|
173
|
+
c2cgeoportal_geoportal/views/shortener.py,sha256=aSIhmzDQ0xfSzdku-W0evfZ6PFr8wc0VSsi9UMmahA8,6722
|
174
174
|
c2cgeoportal_geoportal/views/theme.py,sha256=wTCEMn08aBN6GiTGxiTiEG-TNgjrRMpTys-5nYSQOps,56364
|
175
175
|
c2cgeoportal_geoportal/views/tinyowsproxy.py,sha256=_wPN1Vfo4RNcCQ1xRPU_funie7mDPocL-ox_4hlF1-Y,8178
|
176
176
|
c2cgeoportal_geoportal/views/vector_tiles.py,sha256=2bF3j6WvOpXAJULsEfy7pfeUBeKVheMlcUOWzHVow90,3575
|
@@ -187,8 +187,8 @@ tests/test_mapserverproxy_route_predicate.py,sha256=SzILSSzIuilzIkUYVPZiVzLwW1du
|
|
187
187
|
tests/test_raster.py,sha256=82NJ2MXgZlMqs0ytN-VgNw376iURdk4PkAg__dyh5ns,11948
|
188
188
|
tests/test_wmstparsing.py,sha256=xjA8nJuXFl3H5Bfs4sJw_8qX8E8qvAALK7Hs2-DTP2A,9054
|
189
189
|
tests/xmlstr.py,sha256=rkTKSU4FGjupBKLx75H8o-goB0KbQrxDvdpc6xVX_uQ,5985
|
190
|
-
c2cgeoportal_geoportal-2.9.0.
|
191
|
-
c2cgeoportal_geoportal-2.9.0.
|
192
|
-
c2cgeoportal_geoportal-2.9.0.
|
193
|
-
c2cgeoportal_geoportal-2.9.0.
|
194
|
-
c2cgeoportal_geoportal-2.9.0.
|
190
|
+
c2cgeoportal_geoportal-2.9.0.264.dist-info/METADATA,sha256=5FYTBqMes9OAQzZH_8lzO-6_hghBtEp1l4xJzVCJXXg,1980
|
191
|
+
c2cgeoportal_geoportal-2.9.0.264.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
192
|
+
c2cgeoportal_geoportal-2.9.0.264.dist-info/entry_points.txt,sha256=3dnX260FsLX_AubeNMdyeta_z1X4CxcD3steAlfPx2I,1414
|
193
|
+
c2cgeoportal_geoportal-2.9.0.264.dist-info/top_level.txt,sha256=PJIbY7Nx51dDrJ052f5mDA7c6Tehm5aD-Gb32L_CtJA,29
|
194
|
+
c2cgeoportal_geoportal-2.9.0.264.dist-info/RECORD,,
|
{c2cgeoportal_geoportal-2.9.0.259.dist-info → c2cgeoportal_geoportal-2.9.0.264.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|