Commit e5738122 authored by Dries's avatar Dries

- Patch #148089 by ChrisKennedy: fixed clean URL test on Safari.

parent fd9dc74c
......@@ -34,7 +34,7 @@ Drupal.cleanURLsSettingsCheck = function() {
*/
Drupal.cleanURLsInstallCheck = function() {
var pathname = location.pathname +"";
var url = pathname.replace(/\/[^\/]*?$/, '/') +"node";
var url = pathname.replace(/\/[^/]*$/, "/") +"node";
$("#clean-url .description").append('<span><div id="testing">'+ Drupal.settings.cleanURL.testing +"</div></span>");
$("#clean-url.install").css("display", "block");
$.ajax({url: location.protocol +"//"+ location.host + url, type: "GET", data: " ", complete: function(response) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment