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

(-)t/htdocs/modules/include/xbithack/both/timefmt.shtml (+2 lines)
Line 0 Link Here
1
<!--#config timefmt="%Y" -->
2
xx<!--#echo var="DATE_LOCAL" -->xx
0
  + *
3
  + *
(-)t/conf/include.conf.in (+5 lines)
Lines 22-27 Link Here
22
        XBitHack on
22
        XBitHack on
23
    </Directory>
23
    </Directory>
24
24
25
    <Directory @SERVERROOT@/htdocs/modules/include/xbithack/both>
26
        Options Includes
27
        XBitHack on
28
    </Directory>
29
25
    <Directory @SERVERROOT@/htdocs/modules/include/xbithack/full>
30
    <Directory @SERVERROOT@/htdocs/modules/include/xbithack/full>
26
        Options +IncludesNOEXEC
31
        Options +IncludesNOEXEC
27
        XBitHack full
32
        XBitHack full
(-)t/modules/include.t (-2 / +13 lines)
Lines 214-223 Link Here
214
}
214
}
215
215
216
# in addition to %tests, there are 1 fsize and 1 flastmod test,
216
# in addition to %tests, there are 1 fsize and 1 flastmod test,
217
# 1 GET test, 2 query string tests, 13 XBitHack tests and 14 
217
# 1 GET test, 2 query string tests, 14 XBitHack tests and 14 
218
# tests that use mod_bucketeer to construct brigades for mod_include
218
# tests that use mod_bucketeer to construct brigades for mod_include
219
219
220
plan tests => (scalar keys %tests) + @patterns + 32,
220
plan tests => (scalar keys %tests) + @patterns + 33,
221
              todo => \@todo,
221
              todo => \@todo,
222
              need need_lwp, need_module 'include';
222
              need need_lwp, need_module 'include';
223
223
Lines 387-392 Link Here
387
                );
387
                );
388
    }
388
    }
389
389
390
    # test timefmt - make sure filter only inserted once
391
    # if Option Include and xbithack both say to process
392
    $doc = "xbithack/both/timefmt.shtml";
393
    my @now = localtime();
394
    my $year = $now[5] + 1900;
395
    chmod 0555, "$htdocs/$dir$doc";
396
    ok t_cmp(super_chomp(GET_BODY "$dir$doc"),
397
             "xx${year}xx",
398
             "XBitHack both [timefmt]"
399
             );
400
390
    # test xbithack full
401
    # test xbithack full
391
    $doc = "xbithack/full/test.html";
402
    $doc = "xbithack/full/test.html";
392
    chmod 0444, "$htdocs/$dir$doc";
403
    chmod 0444, "$htdocs/$dir$doc";

Return to bug 39369