From: Konrad Rosenbaum Date: Mon, 19 Mar 2012 07:59:15 +0000 (+0100) Subject: prevent code appending attack in generated PHP code X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=e2c33af7744b42cf33e9e40e3a2ab4b93dc09cc2;p=web%2Fkonrad%2Fpack.git prevent code appending attack in generated PHP code --- diff --git a/woc/php/phpconst.h b/woc/php/phpconst.h index 8cfe12e..281bc04 100644 --- a/woc/php/phpconst.h +++ b/woc/php/phpconst.h @@ -7,7 +7,7 @@ #define WOC_PHP_CONST_H static const QByteArray PHPSTART(""); +static const QByteArray PHPEND("\n//END OF AUTOGENERATED FILE\nreturn;\n?>"); #ifndef WOC_PHP_NO_WRAP #define m_basedir m_parent->m_basedir