• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionebd5aea01c20c6b42a5f785512478ca6fc037234 (tree)
Time2005-02-05 12:40:13
Authorhenoheno <henoheno>
Commiterhenoheno

Log Message

BugTrack/792: Correct footnote. Use rawurlencode($page) for URI

Change Summary

Incremental Difference

--- a/lib/make_link.php
+++ b/lib/make_link.php
@@ -1,6 +1,6 @@
11 <?php
22 // 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 $
44 //
55 // Hyperlink-related functions
66
@@ -301,14 +301,14 @@ EOD;
301301
302302 $id = ++$note_id;
303303 $note = make_link($body);
304- $page = isset($vars['page']) ? htmlspecialchars($vars['page']) : '';
304+ $page = isset($vars['page']) ? rawurlencode($vars['page']) : '';
305305
306306 // 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+
312312 // A hyperlink, content-body to footnote
313313 $name = '<a id="notetext_' . $id . '" href="' . $script . '?' . $page .
314314 '#notefoot_' . $id . '" class="note_super" title="' .