View | Details | Raw Unified | Return to bug 44641
Collapse All | Expand All

(-)mod_rewrite.c.orig (-1 / +4 lines)
Lines 959-965 static int pre_config(apr_pool_t *pconf, Link Here
959
    APR_OPTIONAL_FN_TYPE(ap_register_rewrite_mapfunc) *map_pfn_register;
959
    APR_OPTIONAL_FN_TYPE(ap_register_rewrite_mapfunc) *map_pfn_register;
960
960
961
    /* register int: rewritemap handlers */
961
    /* register int: rewritemap handlers */
962
    mapfunc_hash = apr_hash_make(pconf);
963
    map_pfn_register = APR_RETRIEVE_OPTIONAL_FN(ap_register_rewrite_mapfunc);
962
    map_pfn_register = APR_RETRIEVE_OPTIONAL_FN(ap_register_rewrite_mapfunc);
964
    if (map_pfn_register) {
963
    if (map_pfn_register) {
965
        map_pfn_register("tolower", rewrite_mapfunc_tolower);
964
        map_pfn_register("tolower", rewrite_mapfunc_tolower);
Lines 4644-4649 static void register_hooks(apr_pool_t *p Link Here
4644
     */
4643
     */
4645
    static const char * const ct_aszSucc[]={ "mod_mime.c", NULL };
4644
    static const char * const ct_aszSucc[]={ "mod_mime.c", NULL };
4646
4645
4646
    /* make the hashtable before registering the function, so that
4647
     * other modules are prevented from accessing uninitialized memory.
4648
     */
4649
    mapfunc_hash = apr_hash_make(p);
4647
    APR_REGISTER_OPTIONAL_FN(ap_register_rewrite_mapfunc);
4650
    APR_REGISTER_OPTIONAL_FN(ap_register_rewrite_mapfunc);
4648
4651
4649
    ap_hook_handler(handler_redirect, NULL, NULL, APR_HOOK_MIDDLE);
4652
    ap_hook_handler(handler_redirect, NULL, NULL, APR_HOOK_MIDDLE);

Return to bug 44641