mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-04-07 14:04:35 +08:00
[bug] Fix bug 44259 (#128)
Set default 'codepage' and 'delimiter' in ConvertService.ashx while 'region' param is not used.
This commit is contained in:
committed by
Alexey Golubev
parent
f66fbbbc49
commit
02daec914e
@ -203,12 +203,8 @@ function convertRequest(req, res, isJson) {
|
||||
cmd.setOutputFormat(outputFormat);
|
||||
let outputExt = formatChecker.getStringFromFormat(cmd.getOutputFormat());
|
||||
var fileTo = constants.OUTPUT_NAME + '.' + outputExt;
|
||||
if (undefined != params.codePage) {
|
||||
cmd.setCodepage(commonDefines.c_oAscEncodingsMap[params.codePage]);
|
||||
}
|
||||
if (undefined != params.delimiter) {
|
||||
cmd.setCodepage(parseIntParam(params.delimiter));
|
||||
}
|
||||
cmd.setCodepage(commonDefines.c_oAscEncodingsMap[params.codePage] || commonDefines.c_oAscCodePageUtf8);
|
||||
cmd.setDelimiter(parseIntParam(params.delimiter) || commonDefines.c_oAscCsvDelimiter.Comma);
|
||||
if(undefined != params.delimiterChar)
|
||||
cmd.setDelimiterChar(params.delimiterChar);
|
||||
if (params.region && locale[params.region.toLowerCase()]) {
|
||||
|
||||
Reference in New Issue
Block a user