Revision | ebd5aea01c20c6b42a5f785512478ca6fc037234 (tree) |
---|---|
Time | 2005-02-05 12:40:13 |
Author | henoheno <henoheno> |
Commiter | henoheno |
BugTrack/792: Correct footnote. Use rawurlencode($page) for URI
@@ -1,6 +1,6 @@ | ||
1 | 1 | <?php |
2 | 2 | // PukiWiki - Yet another WikiWikiWeb clone. |
3 | -// $Id: make_link.php,v 1.16 2005/01/27 13:07:49 henoheno Exp $ | |
3 | +// $Id: make_link.php,v 1.17 2005/02/05 03:40:13 henoheno Exp $ | |
4 | 4 | // |
5 | 5 | // Hyperlink-related functions |
6 | 6 |
@@ -301,14 +301,14 @@ EOD; | ||
301 | 301 | |
302 | 302 | $id = ++$note_id; |
303 | 303 | $note = make_link($body); |
304 | - $page = isset($vars['page']) ? htmlspecialchars($vars['page']) : ''; | |
304 | + $page = isset($vars['page']) ? rawurlencode($vars['page']) : ''; | |
305 | 305 | |
306 | 306 | // Footnote |
307 | - $foot_explain[$id] = <<<EOD | |
308 | -<a id="notefoot_$id" href="$script?$page#notetext_$id" class="note_super">*$id</a> | |
309 | -<span class="small">$note</span> | |
310 | -<br /> | |
311 | -EOD; | |
307 | + $foot_explain[$id] = '<a id="notefoot_' . $id . '" href="' . | |
308 | + $script . '?' . $page . '#notetext_' . $id . | |
309 | + '" class="note_super">*' . $id . '</a>' . "\n" . | |
310 | + '<span class="small">' . $note . '</span><br />'; | |
311 | + | |
312 | 312 | // A hyperlink, content-body to footnote |
313 | 313 | $name = '<a id="notetext_' . $id . '" href="' . $script . '?' . $page . |
314 | 314 | '#notefoot_' . $id . '" class="note_super" title="' . |