Skip to content
Permalink
Browse files

qgsserver: use _putenv_s on windows and setenv on windows (followup 7…

  • Loading branch information
jef-n committed Jul 2, 2015
1 parent b28c484 commit b9edb7453c6f88897d917426b7a1d89cdfe158c7
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/server/qgsserver.cpp
@@ -454,7 +454,11 @@ QByteArray QgsServer::handleRequest( const QString queryString ,
*/
if ( ! queryString.isEmpty() )
{
putenv( QString( "QUERY_STRING=%1" ).arg( queryString ).toUtf8().data() );
#ifdef _MSC_VER
_putenv_s( "QUERY_STRING", queryString.toUtf8().data() );
#else
setenv( "QUERY_STRING", queryString.toUtf8().data(), 1 );
#endif
}

int logLevel = QgsServerLogger::instance()->logLevel();

0 comments on commit b9edb74

Please sign in to comment.
You can’t perform that action at this time.