Skip to content

Commit 358efe7

Browse files
authored
Merge pull request littleredbutton#409 from arawa/fix/306_invalid_characters_when_saving_file
fix: littleredbutton#306 invalid characters in recording file name
2 parents 289cfe0 + fa0967b commit 358efe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts/Common/Api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class Api {
212212

213213
public async storeRecording(recording: Recording, path: string) {
214214
const startDate = new Date(recording.startTime);
215-
const filename = `${encodeURIComponent(recording.name + ' ' + startDate.toISOString())}.url`;
215+
const filename = `${encodeURIComponent(recording.name + ' ' + startDate.toISOString().replace(/:/g, '-').substr(0,19))}.url`;
216216
const url = OC.linkToRemote(`dav/files/${OC.currentUser}${path}/${filename}`);
217217

218218
await axios.put(url, `[InternetShortcut]\nURL=${recording.url}`);

0 commit comments

Comments
 (0)