Small module that will remove a double forward slash from the beginning of request uri. For example:

http://example.com//user

would be redirected to:

http://example.com/user

There are no configuration options or permissions. It's plug and play.

https://www.drupal.org/sandbox/bdabmxican/2345639

git clone --branch 7.x-1.x http://git.drupal.org/sandbox/bdabmxican/2345639.git double_slash_fix

Comments

PA robot’s picture

Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxbdabmxican2345639git

We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)

Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).

I'm a robot and this is an automated message from Project Applications Scraper.

abogomolov’s picture

Hi bdabmxican,
your git clone URL is wrong. Use this:
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/bdabmxican/2345639.git double_slash_fix

spadxiii’s picture

Besides what abogomolov said, also use current_path() instead of the preg_replace to remove the url query parameters.

And why just check if the url starts with // ? Why not // anywhere in the url?

bdabmxican’s picture

Issue summary: View changes

Edited git clone link.

PA robot’s picture

Status: Needs work » Closed (won't fix)

Closing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).

I'm a robot and this is an automated message from Project Applications Scraper.