Changeset 954

Show
Ignore:
Timestamp:
12/13/07 15:43:21 (1 year ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r952 r954  
     12007-12-13  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/connection.c (cherokee_connection_get_request): On 
     4        Windows it should replace the '\' characters in the request with / 
     5        characters. 
     6 
     7        * cherokee/buffer.c (cherokee_buffer_unescape_uri): Added a couple 
     8        of TRACE entries. 
     9 
    1102007-12-12  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
    211 
  • cherokee/trunk/cherokee/buffer.c

    r948 r954  
    4141#include "sha1.h" 
    4242 
     43#define ENTRIES "core,buffer" 
    4344 
    4445#define REALLOC_EXTRA_SIZE     16 
     
    10161017        int   len; 
    10171018 
    1018 #define hex2dec_m(c)    ( (int) hex2dec_tab[ ( (unsigned char )(c) ) ] ) 
    1019 #define hex2dec_m2(c1, c2)      ( hex2dec_m(c1) * 16 + hex2dec_m(c2)  ) 
     1019#define hex2dec_m(c)       ( (int) hex2dec_tab[ ( (unsigned char )(c) ) ] ) 
     1020#define hex2dec_m2(c1, c2) ( hex2dec_m(c1) * 16 + hex2dec_m(c2) ) 
     1021 
     1022        TRACE(ENTRIES, "Prev: %s\n", buffer->buf); 
    10201023 
    10211024        if (unlikely (buffer->buf == NULL)) 
     
    10551058#undef hex2dec_m2 
    10561059#undef hex2dec_m 
     1060 
     1061        TRACE(ENTRIES, "Post: %s\n", buffer->buf); 
    10571062        return ret_ok; 
    10581063} 
  • cherokee/trunk/cherokee/connection.c

    r948 r954  
    14071407        } 
    14081408 
     1409#ifdef _WIN32 
     1410        /* Prevent back-slashes in the request on Windows 
     1411         */ 
     1412        TRACE (ENTRIES, "Win32 req before: %s\n", conn->request.buf); 
     1413        cherokee_buffer_swap_chars (&conn->request, '\\', '/'); 
     1414        TRACE (ENTRIES, "Win32 req after: %s\n", conn->request.buf); 
     1415#endif 
     1416 
    14091417        /* Short the path. It transforms the request: 
    14101418         * /dir1/dir2/../file in /dir1/file