View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008877 | mantisbt | integration | public | 2008-02-11 08:28 | 2010-08-22 14:45 |
Reporter | jefersonfoliveira | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | WAMP | OS | Windows | ||
Product Version | 1.1.1 | ||||
Summary | 0008877: MediaWiki integration should use Windows/WAMP friendly URL | ||||
Description | The MediaWiki integration API (wiki_mediawiki_api.php) uses at function "wiki_mediawiki_get_url_for_page_id" the root namespace as a file name in the article URL. This causes Apache to crash in WAMP servers, due to Windows does not allow a colon (:) in file names. A solution to this kind of problem, frequently recommended by Apache users, is the use of Apache rules to rewrite the URLs (see http://www.mwusers.com/forums/archive/index.php/t-4407.html and http://www.apachelounge.com/forum/viewtopic.php?p=996 ), but a very simple way of avoid this problem is passing the article title as a parameter to MediaWiki index page instead of call the article title as a file name. I'm attaching a patch file for the wiki_mediawiki_api.php file. If you agree with this change, please commit it. | ||||
Tags | patch | ||||
Attached Files | mantis1.1.1_MediawikiArticlePath.patch (437 bytes)
Index: wiki_mediawiki_api.php =================================================================== --- wiki_mediawiki_api.php (revision 4968) +++ wiki_mediawiki_api.php (working copy) @@ -35,7 +35,7 @@ $t_page_id = $t_root_namespace . ':' . $p_page_id; } - return $t_root_url . 'index.php/' . urlencode( $t_page_id ); + return $t_root_url . 'index.php?title=' . urlencode( $t_page_id ); } # ---------------------- | ||||