Skip to content

Extra slash in URL #28

@cmonkiew

Description

@cmonkiew

Due to an extra slash in the URL I get a 404 from my server.
Sample code:
server = Redmine('https://foo.blargh/redmine')

When I do this the code tries to access https://foo.blargh/redmine//projects.json

On our web server:
https://foo.blargh/redmine/projects.json works
but
https://foo.blargh/redmine//projects.json results in a 404

Patch:

@@ -628,7 +628,7 @@
             urldata = '?' + urllib.urlencode( parms )


-        fullUrl = self._url + page
+        fullUrl = self._url + '/' + page

         # register this url to be used with the opener
         # must be registered for each unique path

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions