Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add some comments.

  • Loading branch information...
commit e2b716b1e61d8812ff21b9c76fdc9b96f279ec15 1 parent 62aa07a
@FooBarWidget FooBarWidget authored
Showing with 8 additions and 3 deletions.
  1. +8 −3 ext/apache2/Hooks.cpp
View
11 ext/apache2/Hooks.cpp
@@ -1298,14 +1298,19 @@ class Hooks {
*/
return OK;
} else {
- // core.c's map_to_storage hook will transform the filename, as
- // described by saveOriginalFilename(). Here we restore the
- // original filename.
+ /* core.c's map_to_storage hook will transform the filename, as
+ * described by saveOriginalFilename(). Here we restore the
+ * original filename.
+ */
const char *filename = apr_table_get(r->notes, "Phusion Passenger: original filename");
if (filename == NULL) {
return DECLINED;
} else {
prepareRequest(r, config, filename);
+ /* Always return declined in order to let other modules'
+ * hooks run, regardless of what prepareRequest()'s
+ * result is.
+ */
return DECLINED;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.