]> source.dussan.org Git - nextcloud-server.git/commit
Encapsulate require_once to avoid name space bleedind
authorVincent Petry <pvince81@owncloud.com>
Fri, 17 Oct 2014 10:28:27 +0000 (12:28 +0200)
committerVincent Petry <pvince81@owncloud.com>
Fri, 17 Oct 2014 10:45:45 +0000 (12:45 +0200)
commit27c22f071d3f9a3dd6aa99e4e7cddb8e725a1ddf
treea8f5e1c324b9f0c63d8e3b7b13933e6768176306
parent0412f830352fe3b00a05de881535666a3530c31b
Encapsulate require_once to avoid name space bleedind

The script required by require_once might use variable names like $app
which will conflict with the code that follows.

This fix encapsulates require_once into its own function to avoid such
issues.
lib/private/app.php