[Seaside] [Swazoo] upwrapFields fix
Boris Popov
boris at deepcovelabs.com
Tue Mar 13 21:56:15 UTC 2007
Michel,
The following is a change to preserve query data when POST happens to be
made against a URL that contains some (/app?_k=bdwguGGx&14),
unwrapFields: aSwazooRequest
| waFields |
waFields := aSwazooRequest uri queryData copy.
aSwazooRequest isPost
ifTrue: [aSwazooRequest postData
keysAndValuesDo:
[:key :field |
| value |
field filename isNil
ifTrue: [value := field value]
ifFalse:
[value := self
waFileClass new.
value fileName: field
filename.
value contentType: field
contentType.
value contents: field
value].
waFields at: key put: value]].
^waFields
-Boris
--
+1.604.689.0322
DeepCove Labs Ltd.
4th floor 595 Howe Street
Vancouver, Canada V6C 2T5
http://tinyurl.com/r7uw4
boris at deepcovelabs.com
CONFIDENTIALITY NOTICE
This email is intended only for the persons named in the message
header. Unless otherwise indicated, it contains information that is
private and confidential. If you have received it in error, please
notify the sender and delete the entire message including any
attachments.
Thank you.
More information about the Seaside
mailing list