Excuse me,
I have noticed the Squeak 2.7 suffer from a bug in the SecureSwiki
of the PWS.
This bug was already present in Squeak 2.6 and I have posted a fix, but
it was not integrated in the squeak2.7 so I repost it...
This bug is due to the new exception handling mechanism of Squeak.
without this fix the login/passoword request will fail :(
I thank again Mark Schwenk for the code.
Who Can put this fix in the code updates of Squeak 2.7?......
Must I must ask it to Dan Ingalls?
Thank you!!
--
// Giovanni Giorgi
// http://www.egroups.com/group/powertalk/info.html
\\
// -------------------------- | First they ignore you,
// e-mail: | then they laugh at you,
// [EMAIL PROTECTED] | then they fight you,
// (remove '-cat') | then you win.
// -------------------------- | - Mahatma Ghandi
!PWS class methodsFor: 'ServerActions'!
serve: aSocket
"Respond to a request arriving on the given socket and return a string
to be entered in the log file."
"FIXED by Giovanni Giorgi with help of Mark Schwenk
gg 1/27/2000 15:19"
| inst reportMsg |
inst _ self new.
[inst initializeFrom: aSocket.
inst getReply]
ifError:
[:msg :rec |
reportMsg _ (msg size >= 8 and: [(msg copyFrom: 1 to: 7)
= 'Error: '])
ifTrue: [msg copyFrom: 8 to: msg size]
ifFalse: [msg].
inst report: reportMsg for: rec].
aSocket closeAndDestroy: 30.
^ inst log contents! !