Fix two regex examples using back references. Spotted by Kolbjørn Barmen.
authorlinus <linus>
Tue, 16 Mar 2010 11:34:12 +0000 (11:34 +0000)
committerlinus <linus@e88ac4ed-0b26-0410-9574-a7f39faa03bf>
Tue, 16 Mar 2010 11:34:12 +0000 (11:34 +0000)
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@518 e88ac4ed-0b26-0410-9574-a7f39faa03bf

radsecproxy.conf.5

index a22576e..e385c95 100644 (file)
@@ -304,7 +304,7 @@ the request sent by the proxy. The User-Name attribute is written back to the
 original value if a matching response is later sent back to the client. The
 value must be of the form User-Name:/regexpmatch/replacement/. Example usage:
 .RS 
-rewriteAttribute User-Name:/^(.*)@local$/$1@example.com/
+rewriteAttribute User-Name:/^(.*)@local$/\\1@example.com/
 .RE
 .SH "SERVER BLOCK"
 The server block is used to configure a server. That is, tell the proxy about a
@@ -544,7 +544,7 @@ attributes. The value must be of the form
 a numerical attribute type, regexpmatch is regexp matching rule and
 replacement specifies how to replace the matching regexp. Example usage:
 .RS 
-modifyAttribute 1:/^(.*)@local$/$1@example.com/
+modifyAttribute 1:/^(.*)@local$/\\1@example.com/
 .RE
 .SH "SEE ALSO"
 \fBradsecproxy\fR(1),