News for hackers. Stuff that matters.
Re:Apple agrees to settle potential class action suit by U.S... by jrockway on Thursday August 26, 2021 @10:42PM (#28323767)
That's a good one. Since legacy code is less likely to change than the English language, I just call it a "referer" in writing unrelated to HTTP. That way, I'm never confused. (Everyone else? Good luck.)
Re:Apple agrees to settle potential class action suit by U.S... by dhosek on Friday August 27, 2021 @12:05AM (#28324177)
I used to do technical writing and for some software that I wrote the manual and help system for, one of the menu items was misspelled. I spelled the word correctly in the text describing its functionality, but whenever I referred (so to speak) to it directly as the menu item to be selected, I kept the misspelling (this was the early 90s, the days of people saying non-ironically that they couldn't find the "any" key on their computer).
Re:Apple agrees to settle potential class action suit by U.S... by grenoire on Friday August 27, 2021 @12:59AM (#28324452)
Pretty sure people still can't find the any key, we just stopped asking them to!
Re:Apple agrees to settle potential class action suit by U.S... by curryst on Friday August 27, 2021 @09:53AM (#28327812)
Yep, I get some prompts now that say "Press the $X key" (often space), but will actually proceed if you hit any key. It always give me a touch of chuckles when I think about why they named a specific key then.
Re:Apple agrees to settle potential class action suit by U.S... by inopinatus on Thursday August 26, 2021 @11:40PM (#28324056)
I once saw this implemented as a regex. Unfortunately the regex was refer*er.

“Tests pass, ship it”

Re:Apple agrees to settle potential class action suit by U.S... by exikyut on Thursday August 26, 2021 @11:46PM (#28324094)
The tests clearly did not include spinning up an HTTP server and actually using the correctly-spelled header (as per correct English), then.
Re:Apple agrees to settle potential class action suit by U.S... by dqv on Thursday August 26, 2021 @11:47PM (#28324098)
I don't know enough about overflows, but that could theoretically be exploited, right? referrrrrrrrrrrrrrrrrrrrrrrrrrrer
Re:Apple agrees to settle potential class action suit by U.S... by zeusk on Thursday August 26, 2021 @11:56PM (#28324135)
inb4 refeer (should've used referr?er)
Re:Apple agrees to settle potential class action suit by U.S... by xmprt on Friday August 27, 2021 @01:32AM (#28324594)
I also feel like this is a buffer overflow waiting to happen. If somehow someone makes the header length way longer than expected (eg. referrrrrrrrrrrrrrer).
Re:Apple agrees to settle potential class action suit by U.S... by jsjohnst on Friday August 27, 2021 @08:55AM (#28327192)
? is 0 or 1 instances of the preceding character, so referrrrrrrrrrrrrrer wouldn’t match /referr?er/, only referer or referrer.

Proof: https://regex101.com/r/s56ebD/1

Re:Apple agrees to settle potential class action suit by U.S... by xmprt on Friday August 27, 2021 @03:40PM (#28332143)
I'm replying to the grandparent comment. I said "Also" meaning I was adding onto your comment.