diff options
author | Olivier Paroz <github@oparoz.com> | 2015-01-26 12:32:17 +0100 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-03-31 23:49:16 +0200 |
commit | 7c41c0c13f1a845fdcedd62218de490e8c01691b (patch) | |
tree | 387b7e9b73d6fcff19ae85ec9800f7121b4a098f /apps/files/js | |
parent | 691c353eeda077be0fcca1e3839265815a650a90 (diff) | |
download | nextcloud-server-7c41c0c13f1a845fdcedd62218de490e8c01691b.tar.gz nextcloud-server-7c41c0c13f1a845fdcedd62218de490e8c01691b.zip |
use ExecutableFinder and find in findBinaryPath
When using open_basedir, commands such as `which`or `command`can fail
because they might try to look outside of the restricted perimeter.
Symfony's ExecutableFinder can be used instead to look in standard
locations and we can use `find` as a last resort
A better solution would be to adopt a mechanism similar to what has
been done for office documents where a configuration parameter is used
to indicate the path where the executable is to be found.
Diffstat (limited to 'apps/files/js')
0 files changed, 0 insertions, 0 deletions