Skip to content

Commit 76efad1

Browse files
authored
Merge pull request #3310 from pnp/fix/3309
Fixes 3309
2 parents 26f99d8 + ef82188 commit 76efad1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/sp/files/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ export class _File extends ReadableFile<IFileInfo> {
186186
throw Error("The maximum comment length is 1023 characters.");
187187
}
188188

189-
return spPost(File(this, `checkin(comment='${encodePath(comment)}',checkintype=${checkinType})`));
189+
return spPost(File(this, `checkin(comment=@a2,checkintype=@a3)?@a2=${encodeURIComponent(`'${comment.replace(/'/g, "''")}'`)}&@a3=${checkinType}`));
190+
190191
}
191192

192193
/**

0 commit comments

Comments
 (0)