Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 b9edb74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/qgsserver.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit b9edb74

Please sign in to comment.