<div>Extra empty lines after ?> are killing output.</div><div>I' d recommend all app developers to check their /appinfo/app.php for closing PHP tag right now and remove it if  any.</div><div><br></div><div>May be it is a good idea to clear the output buffer after OC_App::loadApps() execution.<div>
<br><div><br></div><div><div style>----</div><div style>Victor Dubiniuk</div><div style><a href="mailto:victor.dubiniuk@gmail.com" target="_blank" style="color:rgb(17,85,204)">victor.dubiniuk@gmail.com</a><br><a href="http://www.linkedin.com/in/vicdeo" target="_blank" style="color:rgb(17,85,204)">http://www.linkedin.com/in/vicdeo</a></div>
<div><br><div class="gmail_quote">On Tue, May 22, 2012 at 1:40 PM, Victor Dubiniuk <span dir="ltr"><<a href="mailto:victor.dubiniuk@gmail.com" target="_blank">victor.dubiniuk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Thomas,<div><br></div><div>remove the closing  ?> </div><div>in the file  apps/files_odfviewer/appinfo/app.php</div><div>to fix it.</div><div><br></div><div><br></div><div>----</div><div>Victor Dubiniuk</div><div><a href="mailto:victor.dubiniuk@gmail.com" target="_blank">victor.dubiniuk@gmail.com</a><br>

<a href="http://www.linkedin.com/in/vicdeo" target="_blank">http://www.linkedin.com/in/vicdeo</a></div><div class="HOEnZb"><div class="h5"><div><br><div class="gmail_quote">On Tue, May 22, 2012 at 2:14 AM, Thomas Müller <span dir="ltr"><<a href="mailto:thomas.mueller@tmit.eu" target="_blank">thomas.mueller@tmit.eu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
has anybody of you deeper knowledge about php-gd?<br>
<br>
One of my ownCloud installation (done with the Debian package) is returning broken images for e.g.<br>
<a href="http://localhost/owncloud-git/?app=gallery&getfile=ajax/thumbnail.php?img=/Winter.jpg" target="_blank">http://localhost/owncloud-git/?app=gallery&getfile=ajax/thumbnail.php?img=/Winter.jpg</a><br>
<br>
The thumbnail itself exists on both installations and it is posted back to the browser.<br>
<br>
The only difference is a new line between the content length and the data.<br>
This new line causes the browser not to show the image.<br>
<br>
Here is the interesting part of the working response:<br>
Transfer-Encoding: chunked<br>
Content-Type: image/jpeg<br>
<br>
2000<br>
......JFIF.............>CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), default quality<br>
<br>
and here the broken repsonse:<br>
Transfer-Encoding: chunked<br>
Content-Type: image/jpeg<br>
<br>
2001<br>
<br>
......JFIF.............>CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), default quality<br>
<br>
I appreciate any response and idea how to fix this issue!<br>
<br>
Thanks a lot,<br>
<br>
<br>
Thomas<br>
<span><font color="#888888"><br>
--<br>
Thomas Müller                 E-Mail: <a href="mailto:thomas.mueller@tmit.eu" target="_blank">thomas.mueller@tmit.eu</a><br>
<br>
_______________________________________________<br>
Owncloud mailing list<br>
<a href="mailto:Owncloud@kde.org" target="_blank">Owncloud@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/owncloud" target="_blank">https://mail.kde.org/mailman/listinfo/owncloud</a><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>