Bug 20520 - https://bugzilla.altlinux.org/PACKAGENAME fails if PACKAGENAME contains dot.
Summary: https://bugzilla.altlinux.org/PACKAGENAME fails if PACKAGENAME contains dot.
Status: CLOSED FIXED
Alias: None
Product: Infrastructure
Classification: Infrastructure
Component: bugzilla.altlinux.org (show other bugs)
Version: unspecified
Hardware: all Linux
: P3 normal
Assignee: Mikhail Gusarov
QA Contact: Mikhail Gusarov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-21 19:26 MSD by Sir Raorn
Modified: 2009-07-19 23:56 MSD (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Mikhail Gusarov 2009-07-19 23:09:12 MSD
Нарисуй правило для mod_rewrite, под который попадут все пакеты, но не попадут *.cgi? Я сразу сделаю.
Comment 2 Sir Raorn 2009-07-19 23:15:26 MSD
RewriteCond /где/там/cgi-bin/%{REQUEST_FILENAME} -f (или !-f, в зависимости от последующего правила)
Comment 3 Mikhail Gusarov 2009-07-19 23:21:35 MSD
Правила сейчас такие:

RewriteRule ^/([0-9]+)$ /show_bug.cgi?id=$1 [R,L]
RewriteRule ^/([0-9a-zA-Z_-]+)$ /buglist.cgi?component=$1&product=Sisyphus [R,L]

(и аналогично для бранчей ещё две строчки)

Куда что добавить?
Comment 4 Sir Raorn 2009-07-19 23:39:11 MSD
В самом начале:

RewriteCond /path/to/cgi-bin/%{REQUEST_FILENAME} -f
RewriteRule .* - [L]

Дальше вместо [0-9a-zA-Z_-]+ использовать [^/]+ (или .+, но тогда обработу бранчей пересавить повыше).
Comment 5 Mikhail Gusarov 2009-07-19 23:56:08 MSD
Спасибо, сделал.