summary refs log tree commit diff stats
path: root/src/common/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/url.c')
-rw-r--r--src/common/url.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/url.c b/src/common/url.c
index 9b4751ae..3de99d1f 100644
--- a/src/common/url.c
+++ b/src/common/url.c
@@ -106,7 +106,8 @@ url_add (char *urltext, int len)
 		len--;
 		data[len] = 0;
 	}
-	if (data[len - 1] == ')')	/* chop trailing ) */
+	/* chop trailing ) but only if there's no counterpart */
+	if (data[len - 1] == ')' && strchr (data, '(') == NULL)
 		data[len - 1] = 0;
 
 	if (!url_tree)