Actually show the FORCE_PREFIX value on the show-status page
authorFabian Keil <fk@fabiankeil.de>
Tue, 20 May 2014 11:58:36 +0000 (11:58 +0000)
committerFabian Keil <fk@fabiankeil.de>
Tue, 20 May 2014 11:58:36 +0000 (11:58 +0000)
Unless I miss something, this never worked before.

cgisimple.c
templates/show-status

index 855cadc..5cc7c6b 100644 (file)
@@ -1,4 +1,4 @@
-const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.124 2014/05/20 11:55:24 fabiankeil Exp $";
+const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.125 2014/05/20 11:56:08 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/cgisimple.c,v $
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/cgisimple.c,v $
@@ -1064,6 +1064,8 @@ jb_err cgi_show_status(struct client_state *csp,
    }
 #endif /* ndef CGI_EDIT_ACTIONS */
 
    }
 #endif /* ndef CGI_EDIT_ACTIONS */
 
+   if (!err) err = map(exports, "force-prefix", 1, FORCE_PREFIX, 1);
+
    if (err)
    {
       free_map(exports);
    if (err)
    {
       free_map(exports);
index c5e59c0..6775634 100644 (file)
               <td><code>FEATURE_FORCE_LOAD</code></td>
               <td>@if-FEATURE_FORCE_LOAD-then@ Yes @else-not-FEATURE_FORCE_LOAD@ No @endif-FEATURE_FORCE_LOAD@</td>
               <td>Allows bypassing all filtering for a single page using the prefix
               <td><code>FEATURE_FORCE_LOAD</code></td>
               <td>@if-FEATURE_FORCE_LOAD-then@ Yes @else-not-FEATURE_FORCE_LOAD@ No @endif-FEATURE_FORCE_LOAD@</td>
               <td>Allows bypassing all filtering for a single page using the prefix
-                  <q><code>@FORCE_PREFIX@</code></q>.</td>
+                  <q><code>@force-prefix@</code></q>.</td>
             </tr>
             <tr>
               <td><code>FEATURE_GRACEFUL_TERMINATION</code></td>
             </tr>
             <tr>
               <td><code>FEATURE_GRACEFUL_TERMINATION</code></td>