Fix and cleanup dir listing regexp.
This commit is contained in:
parent
2023d168c9
commit
ce17e73168
@ -125,8 +125,7 @@ fn dir_listing_handler {
|
|||||||
d = `{basename -d $1}
|
d = `{basename -d $1}
|
||||||
dt = `{echo $d|sed -e 's,.*//,,g' -e 's,/$,,' -e 's,/, / ,g'}
|
dt = `{echo $d|sed -e 's,.*//,,g' -e 's,/$,,' -e 's,/, / ,g'}
|
||||||
echo '<h1 class="dir-list-head">'^$"dt^'</h1> <ul class="dir-list">'
|
echo '<h1 class="dir-list-head">'^$"dt^'</h1> <ul class="dir-list">'
|
||||||
# XXX I'm not sure what the [^$] does there
|
ls -F $d | sed -e 's/\*$//; '^$dirfilter' s,^'$sitedir'/.*/([^/]+/?)$,<li><a href="\1">\1</a></li>,'
|
||||||
ls -F $d | sed -e 's/\*$//; '^$dirfilter' s,^'$sitedir'/.*/([^$].*),<li><a href="\1">\1</a></li>,'
|
|
||||||
echo '</ul>'
|
echo '</ul>'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user