Make sure there is always a trailing slash for application_url
This commit is contained in:
@@ -208,6 +208,11 @@ class Config extends Base
|
||||
{
|
||||
foreach ($values as $option => $value) {
|
||||
|
||||
// Be sure that a trailing slash is there for the url
|
||||
if ($option === 'application_url' && ! empty($value) && substr($value, -1) !== '/') {
|
||||
$value .= '/';
|
||||
}
|
||||
|
||||
$result = $this->db->table(self::TABLE)->eq('option', $option)->update(array('value' => $value));
|
||||
|
||||
if (! $result) {
|
||||
|
||||
Reference in New Issue
Block a user