1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-02-02 15:07:36 -05:00

What was I on when I wrote this? oddsock pointed out that util_url_escape()

was chronically broken

svn path=/trunk/icecast/; revision=4602
This commit is contained in:
Michael Smith 2003-04-10 14:28:02 +00:00
parent 2cb0db8e80
commit 801ab0bc3e

View File

@ -253,8 +253,8 @@ char *util_url_escape(char *src)
}
else {
dst[j] = '%';
dst[j+1] = hexchars[ source[i] & 0x15 ];
dst[j+2] = hexchars[ (source[i] >> 4) & 0x15 ];
dst[j+1] = hexchars[ (source[i] >> 4) & 0xf ];
dst[j+2] = hexchars[ source[i] & 0xf ];
j+= 3;
}
}