Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
PHP Short Tags
Egads! I just unzipped Vanilla to install it for a play around, and to my surprise Apache was serving up the source code happy as anything. A quick rummage and it turns out that short tags have been used (delimiting the php with <? ?> rather than <?php ?>).
I know this is dead easy for me to change with a global search replace, but, since some (many in fact, I think) servers have short tags disabled (since it conflicts with xml for one), I think it may be something worth looking at.
I know this is dead easy for me to change with a global search replace, but, since some (many in fact, I think) servers have short tags disabled (since it conflicts with xml for one), I think it may be something worth looking at.
0
This discussion has been closed.
Comments
perl -pi -e 's@<\?(\W)@<\?php$1@g' *.php *.phtml
Sadly that doesn't recurse directories, although I'm sure someone semi-knowledgeable could make it so.