Tiger66639 / xinc

Automatically exported from code.google.com/p/xinc
0 stars 0 forks source link

Documentation plugin tries to find a file with query string #237

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Publish doxygen documentation (html) under a project as documentation

2. Make search with keyword mysql. Search function makes a GET request with 
query string (example index.html?mysql)

3. Server responds "Could not find documentation"

In Documentation plugin Xinc/Plugin/Repos/Api/Documentation.php in 
_getDocumentationFile

REQUEST_URL contains GET query string, later on $query is used to find a 
matching file. By replacing REQUEST_URL with REDIRECT_URL $query contains only 
requested path without query string and finding a documentation file works.

Replace in 

$query = urldecode($_SERVER['REQUEST_URL']);

with
$query = urldecode($_SERVER['REDIRECT_URL']);

Original issue reported on code.google.com by matti.t....@gmail.com on 8 Oct 2012 at 7:43

GoogleCodeExporter commented 9 years ago
Didn't used Documentation PlugIn yet. Fixed on request.

Original comment by opitz.al...@googlemail.com on 9 Dec 2012 at 5:08