|
25 | 25 | <? |
26 | 26 | if ($exists) { |
27 | 27 | ?> |
28 | | - <a href="http://github.com/rename.php?key=%3Cspan%20class="pl-ent"><?=format_html($_GET['key'])?>"><img src="http://github.com/images/edit.png" width="16" height="16" title="Rename" alt="[R]"></a> |
29 | | - <a href="http://github.com/delete.php?key=%3Cspan%20class="pl-ent"><?=format_html($_GET['key'])?>" class="delkey"><img src="http://github.com/images/delete.png" width="16" height="16" title="Delete" alt="[X]"></a> |
30 | | - <a href="http://github.com/export.php?key=%3Cspan%20class="pl-ent"><?=format_html($_GET['key'])?>"><img src="http://github.com/images/export.png" width="16" height="16" title="Export" alt="[E]"></a> |
| 28 | + <a href="http://github.com/rename.php?key=%3Cspan%20class="pl-ent"><?=urlencode($_GET['key'])?>"><img src="http://github.com/images/edit.png" width="16" height="16" title="Rename" alt="[R]"></a> |
| 29 | + <a href="http://github.com/delete.php?key=%3Cspan%20class="pl-ent"><?=urlencode($_GET['key'])?>" class="delkey"><img src="http://github.com/images/delete.png" width="16" height="16" title="Delete" alt="[X]"></a> |
| 30 | + <a href="http://github.com/export.php?key=%3Cspan%20class="pl-ent"><?=urlencode($_GET['key'])?>"><img src="http://github.com/images/export.png" width="16" height="16" title="Export" alt="[E]"></a> |
31 | 31 | <? |
32 | 32 | } |
33 | 33 | ?> |
|
67 | 67 |
|
68 | 68 | <tr><td><div>Type:</div></td><td><div><?=format_html($type)?></div></td></tr> |
69 | 69 |
|
70 | | - <tr><td><div><abbr title="Time To Live">TTL</abbr>:</div></td><td><div><?=($ttl == -1) ? 'does not expire' : $ttl?> <a href="http://github.com/ttl.php?key=%3Cspan%20class="pl-ent"><?=format_html($_GET['key'])?>&ttl=<?=$ttl?>"><img src="http://github.com/images/edit.png" width="16" height="16" title="Edit TTL" alt="[E]" class="imgbut"></a></div></td></tr> |
| 70 | + <tr><td><div><abbr title="Time To Live">TTL</abbr>:</div></td><td><div><?=($ttl == -1) ? 'does not expire' : $ttl?> <a href="http://github.com/ttl.php?key=%3Cspan%20class="pl-ent"><?=urlencode($_GET['key'])?>&ttl=<?=$ttl?>"><img src="http://github.com/images/edit.png" width="16" height="16" title="Edit TTL" alt="[E]" class="imgbut"></a></div></td></tr> |
71 | 71 |
|
72 | 72 | <tr><td><div>Encoding:</div></td><td><div><?=format_html($encoding)?></div></td></tr> |
73 | 73 |
|
|
82 | 82 | ?> |
83 | 83 | <table> |
84 | 84 | <tr><td><div><?=nl2br(format_html($value))?></div></td><td><div> |
85 | | - <a href="http://github.com/edit.php?type=string&key=%3Cspan%20class="pl-ent"><?=format_html($_GET['key'])?>"><img src="http://github.com/images/edit.png" width="16" height="16" title="Edit" alt="[E]"></a> |
| 85 | + <a href="http://github.com/edit.php?type=string&key=%3Cspan%20class="pl-ent"><?=urlencode($_GET['key'])?>"><img src="http://github.com/images/edit.png" width="16" height="16" title="Edit" alt="[E]"></a> |
86 | 86 | </div></td><td><div> |
87 | | - <a href="http://github.com/delete.php?type=string&key=%3Cspan%20class="pl-ent"><?=format_html($_GET['key'])?>" class="delval"><img src="http://github.com/images/delete.png" width="16" height="16" title="Delete" alt="[X]"></a> |
| 87 | + <a href="http://github.com/delete.php?type=string&key=%3Cspan%20class="pl-ent"><?=urlencode($_GET['key'])?>" class="delval"><img src="http://github.com/images/delete.png" width="16" height="16" title="Delete" alt="[X]"></a> |
88 | 88 | </div></td></tr> |
89 | 89 | </table> |
90 | 90 | <? |
|
97 | 97 | foreach ($values as $hkey => $value) { |
98 | 98 | ?> |
99 | 99 | <tr <?=$alt ? 'class="alt"' : ''?>><td><div><?=format_html($hkey)?></div></td><td><div><?=nl2br(format_html($value))?></div></td><td><div> |
100 | | - <a href="http://github.com/edit.php?type=hash&key=%3Cspan%20class="pl-ent"><?=format_html($_GET['key'])?>&hkey=<?=format_html($hkey)?>"><img src="http://github.com/images/edit.png" width="16" height="16" title="Edit" alt="[E]"></a> |
| 100 | + <a href="http://github.com/edit.php?type=hash&key=%3Cspan%20class="pl-ent"><?=urlencode($_GET['key'])?>&hkey=<?=urlencode($hkey)?>"><img src="http://github.com/images/edit.png" width="16" height="16" title="Edit" alt="[E]"></a> |
101 | 101 | </div></td><td><div> |
102 | | - <a href="http://github.com/delete.php?type=hash&key=%3Cspan%20class="pl-ent"><?=format_html($_GET['key'])?>&hkey=<?=format_html($hkey)?>" class="delval"><img src="http://github.com/images/delete.png" width="16" height="16" title="Delete" alt="[X]"></a> |
| 102 | + <a href="http://github.com/delete.php?type=hash&key=%3Cspan%20class="pl-ent"><?=urlencode($_GET['key'])?>&hkey=<?=urlencode($hkey)?>" class="delval"><img src="http://github.com/images/delete.png" width="16" height="16" title="Delete" alt="[X]"></a> |
103 | 103 | </div></td></tr> |
104 | 104 | <? |
105 | 105 |
|
|
116 | 116 |
|
117 | 117 | ?> |
118 | 118 | <tr <?=$alt ? 'class="alt"' : ''?>><td><div><?=$i?></div></td><td><div><?=nl2br(format_html($value))?></div></td><td><div> |
119 | | - <a href="http://github.com/edit.php?type=list&key=%3Cspan%20class="pl-ent"><?=format_html($_GET['key'])?>&index=<?=$i?>"><img src="http://github.com/images/edit.png" width="16" height="16" title="Edit" alt="[E]"></a> |
| 119 | + <a href="http://github.com/edit.php?type=list&key=%3Cspan%20class="pl-ent"><?=urlencode($_GET['key'])?>&index=<?=$i?>"><img src="http://github.com/images/edit.png" width="16" height="16" title="Edit" alt="[E]"></a> |
120 | 120 | </div></td><td><div> |
121 | | - <a href="http://github.com/delete.php?type=list&key=%3Cspan%20class="pl-ent"><?=format_html($_GET['key'])?>&index=<?=$i?>" class="delval"><img src="http://github.com/images/delete.png" width="16" height="16" title="Delete" alt="[X]"></a> |
| 121 | + <a href="http://github.com/delete.php?type=list&key=%3Cspan%20class="pl-ent"><?=urlencode($_GET['key'])?>&index=<?=$i?>" class="delval"><img src="http://github.com/images/delete.png" width="16" height="16" title="Delete" alt="[X]"></a> |
122 | 122 | </div></td></tr> |
123 | 123 | <? |
124 | 124 |
|
|
133 | 133 | foreach ($values as $value) { |
134 | 134 | ?> |
135 | 135 | <tr <?=$alt ? 'class="alt"' : ''?>><td><div><?=nl2br(format_html($value))?></div></td><td><div> |
136 | | - <a href="http://github.com/edit.php?type=set&key=%3Cspan%20class="pl-ent"><?=format_html($_GET['key'])?>&value=<?=urlencode($value)?>"><img src="http://github.com/images/edit.png" width="16" height="16" title="Edit" alt="[E]"></a> |
| 136 | + <a href="http://github.com/edit.php?type=set&key=%3Cspan%20class="pl-ent"><?=urlencode($_GET['key'])?>&value=<?=urlencode($value)?>"><img src="http://github.com/images/edit.png" width="16" height="16" title="Edit" alt="[E]"></a> |
137 | 137 | </div></td><td><div> |
138 | | - <a href="http://github.com/delete.php?type=set&key=%3Cspan%20class="pl-ent"><?=format_html($_GET['key'])?>&value=<?=urlencode($value)?>" class="delval"><img src="http://github.com/images/delete.png" width="16" height="16" title="Delete" alt="[X]"></a> |
| 138 | + <a href="http://github.com/delete.php?type=set&key=%3Cspan%20class="pl-ent"><?=urlencode($_GET['key'])?>&value=<?=urlencode($value)?>" class="delval"><img src="http://github.com/images/delete.png" width="16" height="16" title="Delete" alt="[X]"></a> |
139 | 139 | </div></td></tr> |
140 | 140 | <? |
141 | 141 |
|
|
152 | 152 |
|
153 | 153 | ?> |
154 | 154 | <tr <?=$alt ? 'class="alt"' : ''?>><td><div><?=$score?></div></td><td><div><?=nl2br(format_html($value))?></div></td><td><div> |
155 | | - <a href="http://github.com/edit.php?type=zset&key=%3Cspan%20class="pl-ent"><?=format_html($_GET['key'])?>&score=<?=$score?>&value=<?=urlencode($value)?>"><img src="http://github.com/images/edit.png" width="16" height="16" title="Edit" alt="[E]"></a> |
156 | | - <a href="http://github.com/delete.php?type=zset&key=%3Cspan%20class="pl-ent"><?=format_html($_GET['key'])?>&value=<?=urlencode($value)?>" class="delval"><img src="http://github.com/images/delete.png" width="16" height="16" title="Delete" alt="[X]"></a> |
| 155 | + <a href="http://github.com/edit.php?type=zset&key=%3Cspan%20class="pl-ent"><?=urlencode($_GET['key'])?>&score=<?=$score?>&value=<?=urlencode($value)?>"><img src="http://github.com/images/edit.png" width="16" height="16" title="Edit" alt="[E]"></a> |
| 156 | + <a href="http://github.com/delete.php?type=zset&key=%3Cspan%20class="pl-ent"><?=urlencode($_GET['key'])?>&value=<?=urlencode($value)?>" class="delval"><img src="http://github.com/images/delete.png" width="16" height="16" title="Delete" alt="[X]"></a> |
157 | 157 | </div></td></tr> |
158 | 158 | <? |
159 | 159 |
|
|
166 | 166 | </table> |
167 | 167 |
|
168 | 168 | <p> |
169 | | - <a href="http://github.com/edit.php?type=%3Cspan%20class="pl-ent"><?=$type?>&key=<?=format_html($_GET['key'])?>" class="add">Add another value</a> |
| 169 | + <a href="http://github.com/edit.php?type=%3Cspan%20class="pl-ent"><?=$type?>&key=<?=urlencode($_GET['key'])?>" class="add">Add another value</a> |
170 | 170 | </p> |
171 | 171 | <? |
172 | 172 | } |
|
0 commit comments