File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -925,9 +925,8 @@ impl_writeable_tlv_based!(NodeAnnouncementInfo, {
925925
926926/// A user-defined name for a node, which may be used when displaying the node in a graph.
927927///
928- /// Node aliases provide a potential avenue for injection attacks. See [security considerations].
929- ///
930- /// [security considerations]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#security-considerations-for-node-aliases
928+ /// Since node aliases are provided by third parties, they are a potential avenue for injection
929+ /// attacks. Care must be taken when processing.
931930#[ derive( Clone , Debug , PartialEq ) ]
932931pub struct NodeAlias ( pub [ u8 ; 32 ] ) ;
933932
@@ -944,6 +943,7 @@ impl fmt::Display for NodeAlias {
944943 } ,
945944 Err ( _) => {
946945 bytes. iter ( ) . map ( |b| * b as char )
946+ // Display printable ASCII characters
947947 . map ( |c| if c >= '\x20' && c <= '\x7e' { c } else { control_symbol } )
948948 . collect :: < String > ( )
949949 } ,
You can’t perform that action at this time.
0 commit comments