Overview
Comment:Fix self_url utilisait www_url au lieu de admin_url
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable
Files: files | file ages | folders
SHA1: de68f0e460f3e0c8198aa04bca6de6587e38f90b
User & Date: bohwaz on 2018-03-20 11:05:01
Other Links: manifest | tags
Context
2018-03-20
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
2018-03-12
05:16
Ajout de la config vhost en commentaire, cf. [571c5487217aaf65e27c4083f96a6f5b927b9392] check-in: 6539b98f9e user: bohwaz tags: trunk
Changes

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

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 WWW_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 ADMIN_URL . $uri;
    }

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