[Affelio-cvs 929] CVS update: affelio/lib/Affelio/App/Admin

Back to archive index

Tadashi Okoshi slash****@users*****
2005年 12月 19日 (月) 13:08:13 JST


Index: affelio/lib/Affelio/App/Admin/Messaging.pm
diff -u affelio/lib/Affelio/App/Admin/Messaging.pm:1.19 affelio/lib/Affelio/App/Admin/Messaging.pm:1.20
--- affelio/lib/Affelio/App/Admin/Messaging.pm:1.19	Mon Dec 19 10:59:02 2005
+++ affelio/lib/Affelio/App/Admin/Messaging.pm	Mon Dec 19 13:08:13 2005
@@ -14,7 +14,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #
-# $Id: Messaging.pm,v 1.19 2005/12/19 01:59:02 slash5234 Exp $
+# $Id: Messaging.pm,v 1.20 2005/12/19 04:08:13 slash5234 Exp $
 
 package Affelio::App::Admin::Messaging;
 {
@@ -33,6 +33,8 @@
     use Affelio::misc::MyCrypt;
     use Affelio::SNS::Handshaker_c;
     use Affelio::exception::CommunicationException;
+    use Affelio::exception::DBException;
+    use Affelio::exception::SystemException;
 
     use Exporter;
     @Affelio::App::Admin::Messaging::ISA = "Exporter";
@@ -109,7 +111,17 @@
 
 	debug_print("Mesg::send: $msg_to $msg_title $msg_body");
 
-	my $passAB = $af->getFM->get_attribute_by_afid($msg_to, "password");
+	if($msg_to =~ /(.*)\/$/){
+	    $msg_to = $1;
+	}
+
+	my $passAB = "";
+	try{
+	    $passAB = $af->getFM->get_attribute_by_afid($msg_to, "password");
+	}catch Affelio::exception::DBException with{
+	    my $E = shift;
+	    throw Affelio::exception::SystemException($E);
+	};
 	if(!defined($passAB) || $passAB eq ""){
 	    #Exception!
 	    exit(1);


Affelio-cvs メーリングリストの案内
Back to archive index