projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c85ce2c
)
Use Horde_Url, fixes HTML escaping.
author
Jan Schneider
<jan@horde.org>
Fri, 15 Oct 2010 12:07:16 +0000
(14:07 +0200)
committer
Jan Schneider
<jan@horde.org>
Fri, 15 Oct 2010 12:07:16 +0000
(14:07 +0200)
wicked/lib/Text_Wiki/Render/Xhtml/Registrylink.php
patch
|
blob
|
history
diff --git
a/wicked/lib/Text_Wiki/Render/Xhtml/Registrylink.php
b/wicked/lib/Text_Wiki/Render/Xhtml/Registrylink.php
index
68ae2ca
..
60f1ca4
100644
(file)
--- a/
wicked/lib/Text_Wiki/Render/Xhtml/Registrylink.php
+++ b/
wicked/lib/Text_Wiki/Render/Xhtml/Registrylink.php
@@
-18,12
+18,13
@@
class Text_Wiki_Render_Xhtml_Registrylink extends Text_Wiki_Render {
*/
function token($options)
{
- $link = $GLOBALS['registry']->link($options['method'], $options['args']);
- if (is_a($link, 'PEAR_Error')) {
+ try {
+ $link = new Horde_Url($GLOBALS['registry']->link($options['method'], $options['args']));
+ } catch (Horde_Exception $e) {
return '';
}
- return
Horde::link($link
) . $options['title'] . '</a>';
+ return
$link->link(
) . $options['title'] . '</a>';
}
}