Page MenuHomePhabricator

D18458.diff
No OneTemporary

D18458.diff

diff --git a/webroot/rsrc/js/application/transactions/behavior-show-older-transactions.js b/webroot/rsrc/js/application/transactions/behavior-show-older-transactions.js
--- a/webroot/rsrc/js/application/transactions/behavior-show-older-transactions.js
+++ b/webroot/rsrc/js/application/transactions/behavior-show-older-transactions.js
@@ -17,6 +17,13 @@
if (!hash) {
return false;
}
+
+ // If the hash isn't purely numeric, ignore it. Comments always have
+ // numeric hashes. See PHI43 and T12970.
+ if (!hash.match(/^\d+$/)) {
+ return false;
+ }
+
var id = 'anchor-'+hash;
try {
JX.$(id);

File Metadata

Mime Type
text/plain
Expires
May 12 2024, 7:59 AM (5 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6273501
Default Alt Text
D18458.diff (644 B)

Event Timeline