Changeset 659

Show
Ignore:
Timestamp:
02/28/07 16:42:27 (2 years ago)
Author:
alo
Message:

--

Files:

Legend:

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

    r657 r659  
    112007-02-28  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/connection.c (cherokee_connection_get_dir_entry): I 
     4        have detected an out of memory (by 1 byte) in this function. 
     5        Added a new conditions to the block check entry that tries to 
     6        inhibit the wrong read. 
    27 
    38        * cherokee/socket.c (cherokee_socket_write): There was a small 
  • cherokee/trunk/cherokee/connection.c

    r658 r659  
    15541554         * It must be redirected to "/blog/" 
    15551555         */ 
    1556         if ((conn->request.len == conn->web_directory.len) && 
    1557             (conn->request.buf[conn->request.len-1] != '/') && 
    1558             (strcmp (conn->request.buf, conn->web_directory.buf) == 0)) 
     1556        if ((conn->request.len > 1) && 
     1557            (cherokee_buffer_end_char (&conn->request) != '/') && 
     1558            (cherokee_buffer_cmp_buf (&conn->request, &conn->web_directory) == ret_ok)) 
    15591559        { 
    15601560                cherokee_buffer_ensure_size (&conn->redirect, conn->request.len + 4);