Browse code

userblacklist(k): fix some doc errors, pointed out from Daniel Vukicevic, daniel at vukicevic dot com (cherry picked from commit 7fc5aa2c050379063212c4bb5f06697e8a97c665)

Henning Westerholt authored on 23/04/2012 16:21:46
Showing 2 changed files
... ...
@@ -202,7 +202,7 @@ table)
202 202
 ...
203 203
 $avp(i:80) = $rU;
204 204
 # rewrite the R-URI
205
-if (!check_user_blacklist("$avp(i:80)", "$avp(i:82)"))
205
+if (!check_user_blacklist("$avp(i:80)", "$avp(i:82)")) {
206 206
         sl_send_reply("403", "Forbidden");
207 207
         exit;
208 208
 }
... ...
@@ -223,7 +223,7 @@ table)
223 223
 ...
224 224
 $avp(i:80) = $rU;
225 225
 # rewrite the R-URI
226
-if (!check_user_whitelist("$avp(i:80)", "$avp(i:82)"))
226
+if (!check_user_whitelist("$avp(i:80)", "$avp(i:82)")) {
227 227
         # process request
228 228
         exit;
229 229
 }
... ...
@@ -238,7 +238,7 @@ if (!check_user_whitelist("$avp(i:80)", "$avp(i:82)"))
238 238
 
239 239
    Example 1.4. check_blacklist usage
240 240
 ...
241
-if (!check_blacklist("global_blacklist")))
241
+if (!check_blacklist("globalblacklist")) {
242 242
         sl_send_reply("403", "Forbidden");
243 243
         exit;
244 244
 }
... ...
@@ -115,7 +115,7 @@ modparam("userblacklist", "use_domain", 0)
115 115
 ...
116 116
 $avp(i:80) = $rU;
117 117
 # rewrite the R-URI
118
-if (!check_user_blacklist("$avp(i:80)", "$avp(i:82)"))
118
+if (!check_user_blacklist("$avp(i:80)", "$avp(i:82)")) {
119 119
 	sl_send_reply("403", "Forbidden");
120 120
 	exit;
121 121
 }
... ...
@@ -142,7 +142,7 @@ if (!check_user_blacklist("$avp(i:80)", "$avp(i:82)"))
142 142
 ...
143 143
 $avp(i:80) = $rU;
144 144
 # rewrite the R-URI
145
-if (!check_user_whitelist("$avp(i:80)", "$avp(i:82)"))
145
+if (!check_user_whitelist("$avp(i:80)", "$avp(i:82)")) {
146 146
 	# process request
147 147
 	exit;
148 148
 }
... ...
@@ -164,7 +164,7 @@ if (!check_user_whitelist("$avp(i:80)", "$avp(i:82)"))
164 164
 		<title><function>check_blacklist</function> usage</title>
165 165
 		<programlisting format="linespecific">
166 166
 ...
167
-if (!check_blacklist("global_blacklist")))
167
+if (!check_blacklist("globalblacklist")) {
168 168
 	sl_send_reply("403", "Forbidden");
169 169
 	exit;
170 170
 }