Mazin on Nostr: Heh - actually the regex in the php library doesn’t even validate if there is a ...
Heh - actually the regex in the php library doesn’t even validate if there is a reason phrase, only that there is a space after the status code. That regex leaves a lot to be desired and it’s an easy fix for them!
Published at
2025-02-06 17:47:13Event JSON
{
"id": "734a1f88fabba22d51b784c6119ba02bfe8aa985a1993b55cd2134c02fccae7a",
"pubkey": "3d842afecd5e293f28b6627933704a3fb8ce153aa91d790ab11f6a752d44a42d",
"created_at": 1738864033,
"kind": 1,
"tags": [
[
"e",
"f3b025f1bc97ae7bfee91695e9f8a2b7789d110375323ea85b832ea3708524d5",
"",
"root"
],
[
"e",
"7fde4aa818d05a62d65fb4ef8fb98c45cf7d9473bd72be3648cbe574f2152279",
"",
"reply"
],
[
"p",
"0dc2dcb14d89f94b8a1590e178e9fbcb2ef1cb0be175a283842f9dc54787801a"
],
[
"p",
"06639a386c9c1014217622ccbcf40908c4f1a0c33e23f8d6d68f4abf655f8f71"
]
],
"content": "Heh - actually the regex in the php library doesn’t even validate if there is a reason phrase, only that there is a space after the status code. That regex leaves a lot to be desired and it’s an easy fix for them!",
"sig": "9d34dd9daee8498621f1105e126699e2d27f753c4296f8e6247737471377d68833a5e1dd2e15f11eb14aeef05d789c217b2cfb761ac3ef33d3d0c1a5964e7c66"
}