set getExtraSymbol public for GpxPod public pages

merge-requests/1/head
Julien Veyssier 2016-12-14 02:09:01 +01:00
parent fcc396f58c
commit 90c14a26e3
2 changed files with 3 additions and 4 deletions

View File

@ -5,8 +5,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/). and this project adheres to [Semantic Versioning](http://semver.org/).
## [Unreleased] ## [Unreleased]
### TODO
- compat jpg
### Added ### Added
- file description field - file description field
- 'destination' readonly field indicating full save path - 'destination' readonly field indicating full save path

View File

@ -90,6 +90,8 @@ class UtilsController extends Controller {
$this->appPath = \OC_App::getAppPath('gpxedit'); $this->appPath = \OC_App::getAppPath('gpxedit');
$this->userId = $UserId; $this->userId = $UserId;
$this->dbtype = $config->getSystemValue('dbtype'); $this->dbtype = $config->getSystemValue('dbtype');
// IConfig object
$this->config = $config;
if ($this->dbtype === 'pgsql'){ if ($this->dbtype === 'pgsql'){
$this->dbdblquotes = '"'; $this->dbdblquotes = '"';
} }
@ -99,8 +101,6 @@ class UtilsController extends Controller {
if ($UserId !== '' and $userfolder !== null){ if ($UserId !== '' and $userfolder !== null){
// path of user files folder relative to DATA folder // path of user files folder relative to DATA folder
$this->userfolder = $userfolder; $this->userfolder = $userfolder;
// IConfig object
$this->config = $config;
// absolute path to user files folder // absolute path to user files folder
$this->userAbsoluteDataPath = $this->userAbsoluteDataPath =
$this->config->getSystemValue('datadirectory'). $this->config->getSystemValue('datadirectory').
@ -185,6 +185,7 @@ class UtilsController extends Controller {
/** /**
* @NoAdminRequired * @NoAdminRequired
* @NoCSRFRequired * @NoCSRFRequired
* @PublicPage
*/ */
public function getExtraSymbol() { public function getExtraSymbol() {
$filename = str_replace(array('../', '..\\'), '', $_GET['name']); $filename = str_replace(array('../', '..\\'), '', $_GET['name']);