Commit 54244157 authored by Romain Bignon's avatar Romain Bignon

escape URL entities in /JOIN params (patch from Brandon Williams, closes #658)

parent e48e8d8a
......@@ -40,6 +40,9 @@ Frank Steinborn <steinex@nognu.de>
Francois Lallart <fraff@free.fr>
* Parameters management with /WHO.
Brandon Williams <driftx@gmail.com>
* Patch on /JOIN command.
Thomas Lecavelier <ook@ookook.fr>
* Ass-kisser on DLFP;
* Use of imlib to load sent buddy icons.
......
/*
* Minbif - IRC instant messaging gateway
* Copyright(C) 2009-2010 Romain Bignon
* Copyright(C) 2009-2011 Romain Bignon
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -325,7 +325,7 @@ void IRC::m_join(Message message)
string accid = channame.substr(1);
/* purple_url_decode() returns a static buffer, no free needed. */
string convname = purple_url_decode(stringtok(accid, ":").c_str());
string param = stringtok(parameters, ",");
string param = purple_url_decode(stringtok(parameters, ",").c_str());
if(accid.empty() || convname.empty())
{
user->send(Message(ERR_NOSUCHCHANNEL).setSender(this)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment