Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Odd behaviour when POSTing forms

From: stefan:falk:mytravel:se at: 13-Dec-2001 15:33

Hi list, been a while since I wrote here, so I thought it was about time. When sending a form with the POST method containing a > (a '>' sign but anti-HTML-ized :) Rebol (or the webserver seem to convert it to a true '>' sign. No matter what. Here's the code used to get the posted data: -------------------------------------------- get-posted-data: func [{Gets data transferred via the POST method}] [ content-length: 20 + load system/options/cgi/content-length ; content length with a little to spare read-io system/ports/input data: make string! content-length content-length data: make object! decode-cgi data ] -------------------------------------------- Is it the decode-cgi that's converting the character perhaps? Anyways, 'Piece of cake!' I hear you lot scream, just add a replace/all ">" ">" in the script that get the post data. But there's a problem, it shouldn't convert the '>' signs in for example <br> ... Why can't I just get to keep my > dammit?! ;-) Thanks in advance /Regards Stefan Falk www.amigaextreme.com