posted by
pmsumner at 10:44pm on 11/04/2002
Phil was an idiot. He spent a lot of time researching and implementing a method that would turn all ampersands ("&") within his journal entries into code - so that they wouldn't interfere with the ampersands used within the string sent to the server.
For example, the string sent to the server when posting an entry could be:
"user=phil99&pass=WrongPass&mode=postevent&event=This+Is+a+test+post&security=private"
But what happens when you have an ampersand within your journal entry? You have to escape them - and turn them into codes that won't interfere with what you send to the server. So "Test&Test" would become "Test%26Test". Make sense?
Phil had done this, and implemented it using the URI::Escape module, but Phil had put this bit of code in the wrong place, and was escaping the wrong string. *blushes* So the ampersands in my test posts weren't being escaped, and were interfering with the post, and hence were making the "security" section (at the end) invalid.
Phil is a moron!
For example, the string sent to the server when posting an entry could be:
"user=phil99&pass=WrongPass&mode=postevent&event=This+Is+a+test+post&security=private"
But what happens when you have an ampersand within your journal entry? You have to escape them - and turn them into codes that won't interfere with what you send to the server. So "Test&Test" would become "Test%26Test". Make sense?
Phil had done this, and implemented it using the URI::Escape module, but Phil had put this bit of code in the wrong place, and was escaping the wrong string. *blushes* So the ampersands in my test posts weren't being escaped, and were interfering with the post, and hence were making the "security" section (at the end) invalid.
Phil is a moron!
There are 3 comments on this entry.