From d4a7ef91847a3f8fe5f0ccf193358b0932f544d1 Mon Sep 17 00:00:00 2001 From: hiro Date: Mon, 6 Mar 2006 10:02:21 +0000 Subject: ignore trailing path separator when comparing URI on phishing check. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1030 ee746299-78ed-0310-b773-934348b2243d --- ChangeLog | 5 +++++ ChangeLog.ja | 5 +++++ src/textview.c | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f7de57fa..51d87856 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-06 + + * src/textview.c: textview_uri_security_check(): ignore trailing path + separator when comparing URI. + 2006-03-06 * src/compose.[ch] diff --git a/ChangeLog.ja b/ChangeLog.ja index 6bc9b816..1b9d952b 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,8 @@ +2006-03-06 + + * src/textview.c: textview_uri_security_check(): URI を比較する際 + 末尾のパス区切りを無視するようにした。 + 2006-03-06 * src/compose.[ch] diff --git a/src/textview.c b/src/textview.c index a705c1c9..f4a12dcd 100644 --- a/src/textview.c +++ b/src/textview.c @@ -2082,7 +2082,7 @@ static gboolean textview_uri_security_check(TextView *textview, RemoteURI *uri) uri_path = get_uri_path(uri->uri); visible_uri_path = get_uri_path(visible_str); - if (strcmp(uri_path, visible_uri_path) != 0) + if (path_cmp(uri_path, visible_uri_path) != 0) retval = FALSE; } -- cgit v1.2.3