Changeset 60

Show
Ignore:
Timestamp:
03/02/08 22:06:01 (10 months ago)
Author:
scott
Message:

Fixed encoding bug in cgi-lib

  • Was decoding +'s after hexentities. This left hexencoded +'s as being translated to spaces. D'oh.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/awkbot/src/cgi-lib.awk

    r58 r60  
    1515    # for portability, we have to continuously work in the argument provided... 
    1616    # standard awk has no Nth match 
     17 
     18    # Must gsub first, otherwise decoding will break the content. 
     19    gsub("+", " ", string) 
     20 
    1721    len = length(string) 
    1822 
     
    2529    result = result string 
    2630 
    27     gsub("+", " ", result) 
    2831    return result 
    2932}