changeset 8597:9f885dbd8157 HEAD

auth: Removed extra string escaping from places where it's not necessary (or is even harmful).
author Timo Sirainen <tss@iki.fi>
date Wed, 07 Jan 2009 17:03:34 -0500
parents 2609eca99495
children 2778cd717f22
files src/auth/auth-cache.c src/auth/auth-request.c
diffstat 2 files changed, 4 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/auth/auth-cache.c	Wed Jan 07 13:45:37 2009 -0500
+++ b/src/auth/auth-cache.c	Wed Jan 07 17:03:34 2009 -0500
@@ -166,8 +166,7 @@
 	str = t_str_new(256);
 	var_expand(str, t_strconcat(request->userdb_lookup ? "U" : "P",
 				    "%!/", key, NULL),
-		   auth_request_get_var_expand_table(request,
-						     auth_request_str_escape));
+		   auth_request_get_var_expand_table(request, NULL));
 
 	node = hash_table_lookup(cache->hash, str_c(str));
 	if (node == NULL) {
@@ -220,8 +219,7 @@
 	str = t_str_new(256);
 	var_expand(str, t_strconcat(request->userdb_lookup ? "U" : "P",
 				    "%!/", key, NULL),
-		   auth_request_get_var_expand_table(request,
-						     auth_request_str_escape));
+		   auth_request_get_var_expand_table(request, NULL));
 
 	request->user = current_username;
 
@@ -262,8 +260,7 @@
 
 	str = t_str_new(256);
 	var_expand(str, key,
-		   auth_request_get_var_expand_table(request,
-		   				     auth_request_str_escape));
+		   auth_request_get_var_expand_table(request, NULL));
 
 	node = hash_table_lookup(cache->hash, str_c(str));
 	if (node == NULL)
--- a/src/auth/auth-request.c	Wed Jan 07 13:45:37 2009 -0500
+++ b/src/auth/auth-request.c	Wed Jan 07 17:03:34 2009 -0500
@@ -803,8 +803,7 @@
 		request->user = user;
 
 		dest = t_str_new(256);
-		table = auth_request_get_var_expand_table(request,
-						auth_request_str_escape);
+		table = auth_request_get_var_expand_table(request, NULL);
 		var_expand(dest, request->auth->username_format, table);
 		user = p_strdup(request->pool, str_c(dest));