mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-08-03 20:14:27 -04:00
ensure the basepath ends in a slash, if one is set
This commit is contained in:
parent
432d3e71d3
commit
987ead2719
2 changed files with 9 additions and 1 deletions
|
@ -272,7 +272,7 @@ class JsonApiTest extends PHPUnit_Framework_TestCase
|
|||
{
|
||||
$mock_yourls_service = $this->_path . DIRECTORY_SEPARATOR . 'yourls.json';
|
||||
$options = parse_ini_file(CONF, true);
|
||||
$options['main']['basepath'] = 'https://example.com/path/';
|
||||
$options['main']['basepath'] = 'https://example.com/path'; // missing slash gets added by Configuration constructor
|
||||
$options['main']['urlshortener'] = 'https://example.com/path/shortenviayourls?link=';
|
||||
$options['yourls']['apiurl'] = $mock_yourls_service;
|
||||
Helper::createIniFile(CONF, $options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue