Changeset 5728:8ea83eb211cf in roaraudio


Ignore:
Timestamp:
11/03/12 00:27:41 (11 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

allow '+'-escapes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/universal/protocol-http.c

    r5727 r5728  
    178178 const char * c = str; 
    179179 
    180  for (; *c; c++) { 
     180 for (; *c; c++, str++) { 
    181181  if ( *c == '%' && __is_hex(c[1]) && __is_hex(c[2]) ) { 
    182182   *str = __hex2num(c[1])*16 + __hex2num(c[2]); 
    183    str++; 
    184183   c += 2; 
     184  } else if ( *c == '+' ) { 
     185   *str = ' '; 
    185186  } else { 
    186187   *str = *c; 
    187    str++; 
    188188  } 
    189189 } 
Note: See TracChangeset for help on using the changeset viewer.