[PR #1766] [CLOSED] fix: uuid generator #1869

Closed
opened 2026-02-26 03:32:36 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/koel/koel/pull/1766
Author: @L3v3L
Created: 5/18/2024
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • 6d179be replace substring with split pop

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 resources/assets/js/utils/crypto.ts (+1 -1)

📄 Description

fixes #1669

The length of window.URL.createObjectURL(new Blob([])) can vary, leading to a truncated uuid when extracting with a hardcorded substring length.

Replacing with a split pop, guarantees that the full uuid is extracted.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/koel/koel/pull/1766 **Author:** [@L3v3L](https://github.com/L3v3L) **Created:** 5/18/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`6d179be`](https://github.com/koel/koel/commit/6d179be29e763942ae3908696a485f4ea0cfa9f4) replace substring with split pop ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `resources/assets/js/utils/crypto.ts` (+1 -1) </details> ### 📄 Description fixes #1669 The length of `window.URL.createObjectURL(new Blob([]))` can vary, leading to a truncated uuid when extracting with a hardcorded substring length. Replacing with a split pop, guarantees that the full uuid is extracted. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 03:32:36 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#1869
No description provided.