next.js
c85caae8 - Fix encoding in encryption of Server Actions (#59000)

Commit
2 years ago
Fix encoding in encryption of Server Actions (#59000) Utils `stringToUint8Array` and `arrayBufferToString` assume that the values are just arbitrary fixed width data. However that doesn't work when we do unicode concatenation (`actionId + arg`) which requires Text encoder/decoder to be used. Closes #58463, closes #58579. In general any complex unicode characters will cause the same issue, for example emojis.
Author
Parents
Loading