We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit af554abc authored by Evan Prodromou's avatar Evan Prodromou

Fix redirect function

parent 26652e92
......@@ -1040,14 +1040,16 @@ function common_redirect($url, $code=307)
302 => "Found",
303 => "See Other",
307 => "Temporary Redirect");
header("Status: ${code} $status[$code]");
header("Location: $url");
'-//W3C//DTD XHTML 1.0 Strict//EN',
common_element('a', array('href' => $url), $url);
$xo = new XMLOutputter();
'-//W3C//DTD XHTML 1.0 Strict//EN',
$xo->output('a', array('href' => $url), $url);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment