]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
document correct_escapes again. Fixes #5245
authorAlan T. DeKok <aland@freeradius.org>
Thu, 30 Sep 2021 13:51:00 +0000 (09:51 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 30 Sep 2021 13:51:28 +0000 (09:51 -0400)
raddb/radiusd.conf.in

index 79603c90020ddd2c1d80a47f945afecaf2fac671..70c0c32547eb6b68d6362430f66e27fc105fe2b2 100644 (file)
@@ -148,6 +148,27 @@ libdir = @libdir@
 #
 pidfile = ${run_dir}/${name}.pid
 
+#
+#  correct_escapes: use correct backslash escaping
+#
+#  Prior to version 3.0.5, the handling of backslashes was a little
+#  awkward, i.e. "wrong".  In some cases, to get one backslash into
+#  a regex, you had to put 4 in the config files.
+#
+#  Version 3.0.5 fixes that.  However, for backwards compatibility,
+#  the new method of escaping is DISABLED BY DEFAULT.  This means
+#  that upgrading to 3.0.5 won't break your configuration.
+#
+#  If you don't have double backslashes (i.e. \\) in your configuration,
+#  this won't matter to you.  If you do have them, fix that to use only
+#  one backslash, and then set "correct_escapes = true".
+#
+#  You can check for this by doing:
+#
+#      $ grep '\\\\' $(find raddb -type f -print)
+#
+correct_escapes = true
+
 #  panic_action: Command to execute if the server dies unexpectedly.
 #
 #  FOR PRODUCTION SYSTEMS, ACTIONS SHOULD ALWAYS EXIT.