[Rt-devel] [PATCH] RT doesn't remove quotes when parsing for
RealName
Todd Chapman
todd at chaka.net
Thu Dec 21 14:10:11 EST 2006
The attached patch should keep the RealName field from
having quotes in it when a user is created through LoadOrCreateByEmail.
-Todd
-------------- next part --------------
==== Patch <realname_parse_fix> level 1
Source: e4b3ae24-6623-0410-94c5-e08a22d88352:/local/bp/3.6-realname_fix:6874
Target: e417ac7c-1bcc-0310-8ffa-8f5827389a85:/rt/branches/3.6-RELEASE:6683
(svn://svn.bestpractical.com)
Log:
r6872 at fe-rtr00a: todd-chapman | 2006-12-21 12:58:35 -0500
Fixing parsing of address so RealName doesn't have quotes.
r6874 at fe-rtr00a: todd-chapman | 2006-12-21 14:07:01 -0500
Try harder to get RealName without quotes.
=== lib/RT/Interface/Email.pm
==================================================================
--- lib/RT/Interface/Email.pm (revision 6683)
+++ lib/RT/Interface/Email.pm (patch realname_parse_fix level 1)
@@ -452,7 +452,7 @@
return ( undef, undef );
}
- my $Name = ( $AddrObj->phrase || $AddrObj->comment || $AddrObj->address );
+ my $Name = ( $AddrObj->name || $AddrObj->phrase || $AddrObj->comment || $AddrObj->address );
#Lets take the from and load a user object.
my $Address = $AddrObj->address;
==== BEGIN SVK PATCH BLOCK ====
Version: svk 1.08 (linux)
eJyNk81q20AQx30L5Cn2oFB6ULTfWqtg3IMDpSWUxO3VrLSrWFSWnNXaTWCh5NQ3zKl9kN66u46d
QhMSEPqamd9/ZmfmzMzfTZGbTKBLEHSXXz8WxWdpq+UJoi7hTqvG9iZhrtVb3SbEtf1VQl0nV9pb
h35jqvBipbnSNrw01TdtJxPkcWKHm0XEHhuppbR9NyTjiF9Yo3WCHJtyNyXhWiRo7AbtLRG7MHrb
DE3feWEucuo9vDvy4f1adwvT9zZYuOBTHGKhq9p+0IsA93+mLLjjxBcU/VVjdOUzug3VNGVEPYRH
afYQ/ujnPQ4c8gSHB052MY8yL6HwAUWfQKE9K/vQWW1qWeko+hKVHKhsfy510+oEs/942Wwlm/Z0
vYopvASmO3C0yvW6vV1YfWOVbq2MYgQ7phguRT2uqSSw5FQqSjDUsEQCIoVpQsJgnY9Gd/eru/sf
x0ej30ejn6M/17/iHAHnpvTfvsXE92yKYCmIGiOkha5UnlcC8pxxOSYlxSp2D2PqgPGjgae1To01
EMoCANsrlVZLuV7JDjiAIeQpwilGAOGCiYIwkEIG4TE4a26a7gqspRnCs6+BVMroYQBDDy60bM9D
nqrXQ/fGgqXcanC96a0eTo+jLn2tLi1gXkC0152bW08zShsfBPyoP4p9b+yy39iDTlgn443hxBYh
0XBON5MJdr783aLN47YUxZeu2WozyPaEO9/ftbRLP+p+ifzHZtOoBHOXtX0l26xcZ+SUpwewRz4s
WUL88tOSSI1pyjkmKfStSMe0YqmGQmKshCAMT95i96wOdZmxWWlkVy31EKUuZp9m7y9nu7kjOxWU
yyqvUlRWVQqJVxF1Lf2NCZwTMZaCJVy8Kpvi+bqKUNVfZkOR6g==
==== END SVK PATCH BLOCK ====
More information about the Rt-devel
mailing list