scsibug / nostr-rs-relay

Mirror of https://sr.ht/~gheartsfield/nostr-rs-relay/
MIT License
593 stars 161 forks source link

fix: postgresql tag filtering for odd-length hex-looking values #192

Closed lez closed 7 months ago

lez commented 7 months ago

The tag filtering code misses odd-length strings that contains only hex digits [0-9a-f]. This fix makes the condition for has_plain_values the inverse of the condition for has_hex_values.

Fixes #191

scsibug commented 7 months ago

Merged, thank you!