Changeset 659
- Timestamp:
- 02/28/07 16:42:27 (2 years ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/cherokee/connection.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r657 r659 1 1 2007-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. 2 7 3 8 * cherokee/socket.c (cherokee_socket_write): There was a small cherokee/trunk/cherokee/connection.c
r658 r659 1554 1554 * It must be redirected to "/blog/" 1555 1555 */ 1556 if ((conn->request.len == conn->web_directory.len) &&1557 (c onn->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)) 1559 1559 { 1560 1560 cherokee_buffer_ensure_size (&conn->redirect, conn->request.len + 4);