From e2c33af7744b42cf33e9e40e3a2ab4b93dc09cc2 Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Mon, 19 Mar 2012 08:59:15 +0100 Subject: [PATCH] prevent code appending attack in generated PHP code --- woc/php/phpconst.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 -- 1.7.2.5