pmsumner: (tatoo)
Add MemoryShare This Entry
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!
Music:: Jackass on E4
Mood:: 'embarrassed' embarrassed
There are 3 comments on this entry. (Reply.)
 
posted by [identity profile] meirion.livejournal.com at 02:46pm on 11/04/2002
nah ;-) go back to january/february on lj_clients and see how stupid i managed to be ;-)

-m-
 
posted by [identity profile] phil99.livejournal.com at 03:24pm on 11/04/2002
I'm trying, but it's remarkably hard - the lj_clients community calendar view doesn't show usernames, grrr! I'll find it and point & laugh eventually though! lol
 
posted by [identity profile] lothie.livejournal.com at 03:50pm on 11/04/2002
Hey, that's the way it works. If you got it right the first time, obviously it was too easy.

May

SunMonTueWedThuFriSat
      1
 
2
 
3
 
4
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29
 
30
 
31