Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9311884
D3162.id11237.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D3162.id11237.diff
View Options
diff --git a/swh/web/assets/src/bundles/admin/deposit.js b/swh/web/assets/src/bundles/admin/deposit.js
--- a/swh/web/assets/src/bundles/admin/deposit.js
+++ b/swh/web/assets/src/bundles/admin/deposit.js
@@ -1,5 +1,5 @@
/**
- * Copyright (C) 2018-2019 The Software Heritage developers
+ * Copyright (C) 2018-2020 The Software Heritage developers
* See the AUTHORS file at the top-level directory of this distribution
* License: GNU Affero General Public License version 3, or any later version
* See top-level LICENSE file for more information
@@ -40,6 +40,11 @@
let originPatternIdx = data.indexOf(originPattern);
if (originPatternIdx !== -1) {
let originUrl = data.slice(originPatternIdx + originPattern.length);
+ let nextSepPattern = ';';
+ let nextSepPatternIdx = originUrl.indexOf(nextSepPattern);
+ if (nextSepPatternIdx !== -1) { /* Remove extra context */
+ originUrl = originUrl.slice(0, nextSepPatternIdx);
+ }
return `<a href="${originUrl}">${originUrl}</a>`;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 2, 10:35 AM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3223191
Attached To
D3162: admin/deposit: Extract origin from swh_anchor_id according to latest change
Event Timeline
Log In to Comment