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

[REBOL] Re: Need some url purification functions

From: rebol:techscribe at: 10-Jan-2001 23:30

Thanks Andrew. I just realized that the net-utils version is right in setting the object's values to none before beginning to parse, otherwise old values may continue to live. In short, we need a vars block, and the parse-url function should be modified as follows: make object! [ .... .... vars: [scheme user pass host port-id path target tag] parse-url: func [ {Return url dataset or cause an error if not a valid URL} url ][ set vars none ... .... ] The reason is that the included parse rules do not under all circumstances clear out values that result from previous parsing. My vars block is probably overkill - compare to the original in parse-url in net-utils/URL-parser - but it can't hurt. Take Care, Elan