diff options
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/Config.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Model/Config.php b/app/Model/Config.php index 8e51da24..bbc86a88 100644 --- a/app/Model/Config.php +++ b/app/Model/Config.php @@ -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) { |