projects
/
web/konrad/pack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
148c47b
)
prevent code appending attack in generated PHP code
author
Konrad Rosenbaum
<konrad@silmor.de>
Mon, 19 Mar 2012 07:59:15 +0000 (08:59 +0100)
committer
Konrad Rosenbaum
<konrad@silmor.de>
Mon, 19 Mar 2012 07:59:15 +0000 (08:59 +0100)
woc/php/phpconst.h
patch
|
blob
|
history
diff --git
a/woc/php/phpconst.h
b/woc/php/phpconst.h
index
8cfe12e
..
281bc04
100644
(file)
--- a/
woc/php/phpconst.h
+++ b/
woc/php/phpconst.h
@@
-7,7
+7,7
@@
#define WOC_PHP_CONST_H
static const QByteArray PHPSTART("<?\n//THIS IS AN AUTOGENERATED FILE, DONT CHANGE!\n\n");
-static const QByteArray PHPEND("\n//END OF AUTOGENERATED FILE\n?>");
+static const QByteArray PHPEND("\n//END OF AUTOGENERATED FILE\nreturn;\n?>");
#ifndef WOC_PHP_NO_WRAP
#define m_basedir m_parent->m_basedir