Overview
Comment:Fix /admin en double dans les URL
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: 6c563e7636467a2a4ce0ce110454b4f5db030865
User & Date: bohwaz on 2018-03-20 11:06:48
Other Links: manifest | tags
Context
2018-03-20
11:10
Cookie sur le domaine de l'admin check-in: 1e74139b60 user: bohwaz tags: trunk, stable
11:06
Fix /admin en double dans les URL check-in: 6c563e7636 user: bohwaz tags: trunk, stable
11:05
Fix self_url utilisait www_url au lieu de admin_url check-in: de68f0e460 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))