- Fix a security problem

Obtained from:	Peter Zelezny <zed@xchat.org> (author)
This commit is contained in:
Pav Lucistnik 2006-12-18 15:57:41 +00:00
parent 3c64970f40
commit 71da93b153
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=180084
2 changed files with 13 additions and 1 deletions

View file

@ -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/

View file

@ -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) {