Overview
SHA1:6c563e7636467a2a4ce0ce110454b4f5db030865
Date: 2018-03-20 11:06:48
User: bohwaz
Comment:Fix /admin en double dans les URL
Timelines: family | ancestors | descendants | both | trunk | stable
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2018-03-20
11:10
[1e74139b60] Cookie sur le domaine de l'admin (user: bohwaz, tags: trunk, stable)
11:06
[6c563e7636] Fix /admin en double dans les URL (user: bohwaz, tags: trunk, stable)
11:05
[de68f0e460] Fix self_url utilisait www_url au lieu de admin_url (user: bohwaz, tags: trunk, stable)
Changes

Modified src/include/lib/Garradin/Utils.php from [08b1ced9c0] to [7fbdced7dc].

136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
        }

        if (is_array($qs))
        {
            $uri .= '?' . http_build_query($qs);
        }

        return ADMIN_URL . $uri;
    }

    public static function redirect($destination=false, $exit=true)
    {
        if (empty($destination) || !preg_match('/^https?:\/\//', $destination))
        {
            if (empty($destination))







|







136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
        }

        if (is_array($qs))
        {
            $uri .= '?' . http_build_query($qs);
        }

        return str_replace('/admin', '', ADMIN_URL) . $uri;
    }

    public static function redirect($destination=false, $exit=true)
    {
        if (empty($destination) || !preg_match('/^https?:\/\//', $destination))
        {
            if (empty($destination))