Skip to content

Commit

Permalink
Fix % escapes.
Browse files Browse the repository at this point in the history
録画ファイル名に%文字が含まれていると、その%文字がエスケープ(%%)されないままファイル名が化ける現象の修正
  • Loading branch information
hyrolean committed Mar 3, 2021
1 parent e80ed65 commit c8eb72b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions EpgTimerSrv/EpgTimerSrv/BatManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,16 @@ BOOL CBatManager::CreateBatFile(BAT_WORK_INFO* info, wstring batSrcFilePath, wst
strAddKey.erase(strAddKey.length()-1, 1);
}

// % escapes
Replace(strRecFilePath,"%","%%");
Replace(strFolderPath,"%","%%");
Replace(strFileName,"%","%%");
Replace(strServiceName,"%","%%");
Replace(strTitle,"%","%%");
Replace(strTitleF,"%","%%");
Replace(strTitle2F,"%","%%");
Replace(strAddKey,"%","%%");

Replace(strRead, "$FilePath$", strRecFilePath);
Replace(strRead, "$FolderPath$", strFolderPath);
Replace(strRead, "$FileName$", strFileName);
Expand Down

0 comments on commit c8eb72b

Please sign in to comment.