[mirrorbrain-commits] r8043 - /trunk/mod_mirrorbrain/mod_mirrorbrain.c

From: <poeml_at_mirrorbrain.org>
Date: Fri, 23 Apr 2010 03:29:52 -0000
Author: poeml
Date: Fri Apr 23 05:29:51 2010
New Revision: 8043

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8043&view=rev
Log:
mod_mirrorbrain:
- requests with PATH_INFO were not ignored, as they should be. The default
  behaviour of Apache is to ignore such requests, and CGI or script handler
  deviate from that. mod_mirrorbrain now also correctly returns 404 Not Found
  for such requests. This fixes issue #18, as well as
  https://bugzilla.novell.com/show_bug.cgi?id=546396.

Modified:
    trunk/mod_mirrorbrain/mod_mirrorbrain.c

Modified: trunk/mod_mirrorbrain/mod_mirrorbrain.c
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mod_mirrorbrain/mod_mirrorbrain.c?rev=8043&r1=8042&r2=8043&view=diff
==============================================================================
--- trunk/mod_mirrorbrain/mod_mirrorbrain.c (original)
+++ trunk/mod_mirrorbrain/mod_mirrorbrain.c Fri Apr 23 05:29:51 2010
_at_@ -1092,6 +1092,12 @@
         return DECLINED;
     }
 
+    /* is there PATH_INFO, and are we supposed to accept it? */
+    if ((r->path_info && *r->path_info)
+            && (r->used_path_info != AP_REQ_ACCEPT_PATH_INFO)) {
+        debugLog(r, cfg, "ignoring request with PATH_INFO");
+        return DECLINED;
+    }
 
     debugLog(r, cfg, "URI: '%s'", r->unparsed_uri);
     debugLog(r, cfg, "filename: '%s'", r->filename);




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Fri Apr 23 2010 - 03:29:56 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT