projects
/
webpac2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1366d8
)
without special database/html.pm file turn links into clickable <a hrefs>
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 9 Jun 2009 21:34:21 +0000
(21:34 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 9 Jun 2009 21:34:21 +0000
(21:34 +0000)
git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@1218
07558da8
-63fa-0310-ba24-
9fe276d99e06
vhost/webpac2.cgi
patch
|
blob
|
history
diff --git
a/vhost/webpac2.cgi
b/vhost/webpac2.cgi
index
f09b0e4
..
83c658d
100755
(executable)
--- a/
vhost/webpac2.cgi
+++ b/
vhost/webpac2.cgi
@@
-278,6
+278,8
@@
if ( my $search = param('search') ) {
warn "disable html markup for $attr: $@";
$html_markup_skip->{$attr} = $@;
}
+ } else {
+ $v =~ s{(http://\S+)}{<a href="$1">$1</a>};
}
my $label = $attr_labels->{'-labels'}->{$attr} || $attr;
print qq|<div><label>$label</label><span class=$attr>$v</span></div>\n|;