fix: incorrect polyline decoding (#993)
* fix: incorrect polyline decoding Don't split static image encoded path on pipe or comma Signed-off-by: boldtrn <boldtrn@gmail.com> * fix: still allow other parameters other than enc: That way we can still style individual paths Signed-off-by: boldtrn <boldtrn@gmail.com> * chore: lint Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net> * chore: lint + comment Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net> * docs: try to clarify path information Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net> * fix: stroke color not working unless path is specified i found this issue testing encoded paths. If width is not specifed, stroke color does not work Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net> * docs: show different options Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net> --------- Signed-off-by: boldtrn <boldtrn@gmail.com> Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net> Co-authored-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
@@ -171,6 +171,18 @@ describe('Static endpoints', function () {
|
||||
'?path=-10,-10|-20,-20',
|
||||
);
|
||||
});
|
||||
|
||||
describe('encoded path', function () {
|
||||
testStatic(
|
||||
prefix,
|
||||
'auto/20x20',
|
||||
'png',
|
||||
200,
|
||||
2,
|
||||
/image\/png/,
|
||||
'?path=' + decodeURIComponent('enc:{{biGwvyGoUi@s_A|{@'),
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('invalid requests return 4xx', function () {
|
||||
|
||||
Reference in New Issue
Block a user