Skip to content

Commit aae5f2f

Browse files
authored
use proper initialization NULL for CORS variable, not an empty string (openstreetmap#479)
The empty string as initialization for CORS breaks the tile access in case Origin header is sent. Properly initialize it with the correct value NULL. Error was introduced 10 months ago it seems.
1 parent 13adc2e commit aae5f2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mod_tile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,7 @@ static const char *add_tile_config(cmd_parms *cmd, void *mconfig, int argc, char
20102010
return "AddTileConfig error, the configured zoom level lies outside of the range supported by this server";
20112011
}
20122012

2013-
return _add_tile_config(cmd, baseuri, name, minzoom, maxzoom, 1, 1, fileExtension, mimeType, "", "", "", "", tile_dir, 0);
2013+
return _add_tile_config(cmd, baseuri, name, minzoom, maxzoom, 1, 1, fileExtension, mimeType, "", "", "", NULL, tile_dir, 0);
20142014
}
20152015

20162016
static const char *load_tile_config(cmd_parms *cmd, void *mconfig, const char *config_file_name)

0 commit comments

Comments
 (0)