diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-06-18 16:25:00 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-06-18 16:25:00 -0400 |
commit | f055d2643be700ea9be6bd4b61b49111244b31a2 (patch) | |
tree | 3d36c3c384ecbf0c42363a6928f11f9e0493ad20 /lib | |
parent | ed54a46fe9046dc019b6fcf3864a2bf5a3ecc69e (diff) |
add a little XML goodness to redirect
darcs-hash:20080618202500-84dde-66eeb8af0e26d9723b89831a6ba7bb82b09dbe09.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index 9b4415c17..a0c1b5fcb 100644 --- a/lib/util.php +++ b/lib/util.php @@ -615,7 +615,12 @@ function common_redirect($url, $code=307) { 307 => "Temporary Redirect"); header("Status: ${code} $status[$code]"); header("Location: $url"); + + common_start_xml('a', + '-//W3C//DTD XHTML 1.0 Strict//EN', + 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'); common_element('a', array('href' => $url), $url); + common_end_xml(); } function common_broadcast_notice($notice, $remote=false) { |