#84 Non-standard css location => Wrong help links

closed-accepted
nobody
None
5
2008-10-16
2008-10-11
No

For some reasons I use non-standard css placement:
$codestriker_css = '/html/codestriker.css';

The problem is than help links are constructed from css links (lib/Codestriker/Http/UrlBuilder.pm, line 40):
$htmlurl = $Codestriker::codestriker_css;
$htmlurl =~ s/\/.+?\.css//;

I see no problem in this regexp but it works as greedy one and produces '/' help path, like here: <a href="/x639.html">Help</a>

After I've replaced last regexp to
$htmlurl =~ s/\/[^\/]+\.css//;
help links are works as needed.

Codestriker 1.9.5, 1.9.7rc1, CentOS5, perl 5.8.8

Discussion

  • David Sitsky
    David Sitsky
    2008-10-16

    • status: open --> closed-accepted