tileserver-gl/src
Martin d'Allens e8f64e2861
chore: cleanup useless decodeURIComponent() calls (#1002)
* chore: cleanup useless decodeURIComponent() calls

Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>

* chore: try to fix CodeQL failure "Polynomial regular expression"

Fix 1:
\d\.?\d* can backtrack catastrophically
\d(\.\d*)? is safer

Fix 2:
Useless parenthesis around "enc:"

Fix 3:
The httpTester regex was misleading. It did not really check for "http".
Simplified to show its true meaning. The behaviour should not have changed.

Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>

* chore: try to optimize the regex further, to fix CodeQL failure

Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>

* chore: consistency between previous changes, docs, and serve_style.js

Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>

---------

Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>
2023-10-13 19:08:28 -04:00
..
healthcheck.js change docker to use port 8080 by default (#638) 2022-11-20 23:00:41 -05:00
main.js style: fix lint issues in code 🕺 (#626) 2022-11-08 22:56:07 -05:00
serve_data.js fix: fix vectortile constructor (#723) 2023-01-20 17:41:18 -05:00
serve_font.js fix: Ensure font serving does not reflect userdata-derived errors as HTML (#647) 2022-11-24 11:07:11 -05:00
serve_light.js style: fix lint issues in code 🕺 (#626) 2022-11-08 22:56:07 -05:00
serve_rendered.js chore: cleanup useless decodeURIComponent() calls (#1002) 2023-10-13 19:08:28 -04:00
serve_style.js chore: cleanup useless decodeURIComponent() calls (#1002) 2023-10-13 19:08:28 -04:00
server.js fix: lint 2023-09-27 00:16:54 -04:00
utils.js fix: lint 2023-09-27 00:16:54 -04:00