Commit ab65c232 authored by Dries's avatar Dries
Browse files

- Patch #97213 by Chris: made clean URL test work with non-conventional ports.

parent 301c6e75
...@@ -11,7 +11,7 @@ Drupal.cleanURLsSettingsCheck = function() { ...@@ -11,7 +11,7 @@ Drupal.cleanURLsSettingsCheck = function() {
var url = location.pathname +"admin/settings/clean-urls"; var url = location.pathname +"admin/settings/clean-urls";
$("#clean-url .description span").html('<div id="testing">'+ Drupal.settings.cleanURL.testing +"</div>"); $("#clean-url .description span").html('<div id="testing">'+ Drupal.settings.cleanURL.testing +"</div>");
$("#clean-url p").hide(); $("#clean-url p").hide();
$.ajax({url: location.protocol +"//"+ location.hostname + url, type: "GET", data: " ", complete: function(response) { $.ajax({url: location.protocol +"//"+ location.host + url, type: "GET", data: " ", complete: function(response) {
$("#testing").toggle(); $("#testing").toggle();
if (response.status == 200) { if (response.status == 200) {
// Check was successful. // Check was successful.
......
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