From: Fabian Keil <fk@fabiankeil.de>
Date: Tue, 20 May 2014 11:58:36 +0000 (+0000)
Subject: Actually show the FORCE_PREFIX value on the show-status page
X-Git-Tag: v_3_0_22~147
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/@default-cgi@edit-actions-add-url-form?a=commitdiff_plain;h=61af5631a63951dda53a49c2a0146af685fc598c;p=privoxy.git

Actually show the FORCE_PREFIX value on the show-status page

Unless I miss something, this never worked before.
---

diff --git a/cgisimple.c b/cgisimple.c
index 855cadc1..5cc7c6b6 100644
--- a/cgisimple.c
+++ b/cgisimple.c
@@ -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 $
@@ -1064,6 +1064,8 @@ jb_err cgi_show_status(struct client_state *csp,
    }
 #endif /* ndef CGI_EDIT_ACTIONS */
 
+   if (!err) err = map(exports, "force-prefix", 1, FORCE_PREFIX, 1);
+
    if (err)
    {
       free_map(exports);
diff --git a/templates/show-status b/templates/show-status
index c5e59c0f..67756346 100644
--- a/templates/show-status
+++ b/templates/show-status
@@ -281,7 +281,7 @@
               <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>