Fix corrutped table in 'Enter your xpub' screen
What changed, and why it matters
This commit fixes a visual layout bug in an HTML table on the 'Enter your xpub' screen. The table had incorrect row span numbers, which made the table display incorrectly. There is no security issue here.
No security action needed. Treat as a routine UI fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch adjusts the rowspan attributes on three HTML table cells in Xpub.cshtml. The row counts were one too high (4 instead of 3, and 3 instead of 2), causing a corrupted table layout. The change is purely presentational and affects no logic, data handling, or security boundary.
Changed components
BTCPayServer/Plugins/Wallets/Views/UIStoreOnChainWallets/ImportWallet/Xpub.cshtmlInspect captured patch +3 / −3
diff --git a/BTCPayServer/Plugins/Wallets/Views/UIStoreOnChainWallets/ImportWallet/Xpub.cshtml b/BTCPayServer/Plugins/Wallets/Views/UIStoreOnChainWallets/ImportWallet/Xpub.cshtml
index 3e15132..625d08c 100644
--- a/BTCPayServer/Plugins/Wallets/Views/UIStoreOnChainWallets/ImportWallet/Xpub.cshtml
+++ b/BTCPayServer/Plugins/Wallets/Views/UIStoreOnChainWallets/ImportWallet/Xpub.cshtml
@@ -47,7 +47,7 @@
@if (Model.SupportSegwit)
{
<tr>
- <td rowspan="4">P2WPKH</td>
+ <td rowspan="3">P2WPKH</td>
<td class="font-monospace">xpub…</td>
</tr>
<tr>
@@ -57,7 +57,7 @@
<td class="font-monospace">wpkh([…/84'/0'/0']xpub…/**)</td>
</tr>
<tr>
- <td rowspan="4">P2SH-P2WPKH</td>
+ <td rowspan="3">P2SH-P2WPKH</td>
<td class="font-monospace">xpub…-[p2sh]</td>
</tr>
<tr>
@@ -68,7 +68,7 @@
</tr>
}
<tr>
- <td rowspan="3">P2PKH</td>
+ <td rowspan="2">P2PKH</td>
<td class="font-monospace">xpub…-[legacy]</td>
</tr>
<tr>
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.