mirror of
https://github.com/benapetr/stikkit.git
synced 2025-04-26 13:01:08 -05:00
fixed a bug
don't include author name if it's empty, otherwise stikked has some problems rendering it
This commit is contained in:
parent
53dc1e75fc
commit
0583ceb282
@ -2,7 +2,7 @@
|
|||||||
# Process this file with autoconf to produce a configure script.
|
# Process this file with autoconf to produce a configure script.
|
||||||
|
|
||||||
AC_PREREQ([2.69])
|
AC_PREREQ([2.69])
|
||||||
AC_INIT(stikkit, 1.0.0, benapetr@gmail.com)
|
AC_INIT(stikkit, 1.0.1, benapetr@gmail.com)
|
||||||
AM_INIT_AUTOMAKE
|
AM_INIT_AUTOMAKE
|
||||||
AC_CONFIG_SRCDIR([configuration.cpp])
|
AC_CONFIG_SRCDIR([configuration.cpp])
|
||||||
|
|
||||||
|
@ -89,8 +89,11 @@ int main(int argc, char *argv[])
|
|||||||
readBuffer.clear();
|
readBuffer.clear();
|
||||||
string post = "text=";
|
string post = "text=";
|
||||||
post += curl_easy_escape(curl, Stikkit::Configuration::Source.c_str(), Stikkit::Configuration::Source.length());
|
post += curl_easy_escape(curl, Stikkit::Configuration::Source.c_str(), Stikkit::Configuration::Source.length());
|
||||||
|
if (Stikkit::Configuration::Author.length() > 0)
|
||||||
|
{
|
||||||
post += "&name=";
|
post += "&name=";
|
||||||
post += curl_easy_escape(curl, Stikkit::Configuration::Author.c_str(), Stikkit::Configuration::Author.length());
|
post += curl_easy_escape(curl, Stikkit::Configuration::Author.c_str(), Stikkit::Configuration::Author.length());
|
||||||
|
}
|
||||||
if (Stikkit::Configuration::Title.length() > 0)
|
if (Stikkit::Configuration::Title.length() > 0)
|
||||||
{
|
{
|
||||||
post += "&title=";
|
post += "&title=";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user