<div dir="ltr"><div>Hi all,</div><div><br></div><div>We want to inform all developers about an import change coming soon with ownCloud 5.0.</div><div><br></div><div>Starting with ownCloud 5.0, all inline scripts will be disabled due to security reason, this means that you will have to move all inline javascript snippets to external files. There are the following ways to perform this:</div>

<div><br></div><div>a) If your JS code contains PHP code:</div><div>Include the php file via <script> tags, e.g.:</div><div><a href="https://github.com/owncloud/apps/commit/25268628904de7487f53b54002370fa231e5b86c">https://github.com/owncloud/apps/commit/25268628904de7487f53b54002370fa231e5b86c</a></div>

<div>(You can also use routing if you want that the file ends with ".js": <a href="https://github.com/owncloud/apps/commit/0a91fd38d4df6ae9fb2de47ca16da2eb8a704841">https://github.com/owncloud/apps/commit/0a91fd38d4df6ae9fb2de47ca16da2eb8a704841</a>)</div>

<div><br></div><div>b) If your JS code contains no PHP code:</div><div>Just include the file as normal using OCP\Util::addscript('appname', 'filename') e.g.:</div><div><a href="https://github.com/owncloud/apps/commit/986c07a196f39e80d7dba11fffc509fe24ef0eea">https://github.com/owncloud/apps/commit/986c07a196f39e80d7dba11fffc509fe24ef0eea</a></div>

<div><br></div><div>So, you have to act now - please have a look at this pull request: <a href="https://github.com/owncloud/apps/pull/472">https://github.com/owncloud/apps/pull/472</a></div><div><br></div><div>Don't worry! - Porting the apps is really straight forward, and for most apps in the "apps" repo we have already done that for you!</div>

<div><br></div><div>Cheers,</div><div>Lukas</div><div><br></div>-- <br><div dir="ltr">ownCloud<br>Your Cloud, Your Data, Your Way!<br></div>
</div>