Fixed RetroShare links with "'" in the file name.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3964 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2011-01-13 00:37:45 +00:00
parent 73b443ddf6
commit cdef45d4a3

View File

@ -264,17 +264,17 @@ QString RetroShareLink::niceName() const
QString RetroShareLink::toHtml() const QString RetroShareLink::toHtml() const
{ {
return QString("<a href='") + toString() + "'>" + niceName() + "</a>" ; return QString("<a href=\"") + toString() + "\">" + niceName() + "</a>" ;
} }
QString RetroShareLink::toHtmlFull() const QString RetroShareLink::toHtmlFull() const
{ {
return QString("<a href='") + toString() + "'>" + toString() + "</a>" ; return QString("<a href=\"") + toString() + "\">" + toString() + "</a>" ;
} }
QString RetroShareLink::toHtmlSize() const QString RetroShareLink::toHtmlSize() const
{ {
return QString("<a href='") + toString() + "'>" + name() +"</a>" + " " + "<font color=\"blue\">" + "(" + misc::friendlyUnit(_size) + ")" +"</font>"; return QString("<a href=\"") + toString() + "\">" + name() +"</a>" + " " + "<font color=\"blue\">" + "(" + misc::friendlyUnit(_size) + ")" +"</font>";
} }
bool RetroShareLink::checkName(const QString& name) bool RetroShareLink::checkName(const QString& name)