Do not allow dot character in request extensions
This commit is contained in:
parent
a495993e68
commit
a0007b42f9
1 changed files with 2 additions and 2 deletions
|
@ -182,7 +182,7 @@ module.exports = function(maps, options, prefix) {
|
|||
.replace('{z}', ':z(\\d+)')
|
||||
.replace('{x}', ':x(\\d+)')
|
||||
.replace('{y}', ':y(\\d+)')
|
||||
.replace('{format}', ':format([\\w\\.]+)');
|
||||
.replace('{format}', ':format([\\w]+)');
|
||||
|
||||
var respondImage = function(z, lon, lat, width, height, scale, format, res, next) {
|
||||
if (Math.abs(lon) > 180 || Math.abs(lat) > 85.06) {
|
||||
|
@ -267,7 +267,7 @@ module.exports = function(maps, options, prefix) {
|
|||
});
|
||||
|
||||
var staticPattern =
|
||||
'/static/%s:scale(' + SCALE_PATTERN + ')?\.:format([\\w\\.]+)';
|
||||
'/static/%s:scale(' + SCALE_PATTERN + ')?\.:format([\\w]+)';
|
||||
|
||||
var centerPattern =
|
||||
util.format(':lon(%s),:lat(%s),:z(\\d+)/:width(\\d+)x:height(\\d+)',
|
||||
|
|
Loading…
Reference in a new issue