From 71da93b153af5791e9c66b379ade755646bebb9e Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Mon, 18 Dec 2006 15:57:41 +0000 Subject: [PATCH] - Fix a security problem Obtained from: Peter Zelezny (author) --- irc/xchat/Makefile | 2 +- irc/xchat/files/patch-xc264-sec-url | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 irc/xchat/files/patch-xc264-sec-url diff --git a/irc/xchat/Makefile b/irc/xchat/Makefile index 03104fe653e6..01b7052ea65a 100644 --- a/irc/xchat/Makefile +++ b/irc/xchat/Makefile @@ -7,7 +7,7 @@ PORTNAME= xchat PORTVERSION= 2.6.8 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= irc gnome ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://xchat.org/files/source/2.6/ diff --git a/irc/xchat/files/patch-xc264-sec-url b/irc/xchat/files/patch-xc264-sec-url new file mode 100644 index 000000000000..190cc6f5d8be --- /dev/null +++ b/irc/xchat/files/patch-xc264-sec-url @@ -0,0 +1,12 @@ +--- src/common/util.c 2006-10-14 15:47:44.000000000 +1000 ++++ src/common/util.c 2006-12-17 13:22:01.000000000 +1100 +@@ -1178,7 +1178,8 @@ + if (*src != quote) *buf++ = '\\'; + } + *buf++ = *src; +- } else if (isspace((unsigned char) *src)) { ++ /*} else if (isspace((unsigned char) *src)) {*/ ++ } else if (*src == ' ') { + if (*argv[argc]) { + buf++, argc++; + if (argc == argvAlloced) {