Make Ajax.Request#isSameOrigin JavaScript Lint compliant. Backport fix to 1.5.1.2.
This commit is contained in:
parent
0f97f4ce20
commit
794457da75
|
@ -1,5 +1,7 @@
|
|||
*SVN*
|
||||
|
||||
* Make Ajax.Request#isSameOrigin JavaScript Lint compliant. [Andrew Dupont]
|
||||
|
||||
* Properly serialize form fields with names that collide with built-in JS properties (like "length" or "toString"). Closes #9609. [gryn, kangax]
|
||||
|
||||
* Make Object.isArray correctly identify arrays created in another frame. Closes #10374. [pointy, Dean Edwards, Andrew Dupont, Tobie Langel]
|
||||
|
|
|
@ -208,7 +208,7 @@ Ajax.Request = Class.create(Ajax.Base, {
|
|||
},
|
||||
|
||||
isSameOrigin: function() {
|
||||
var m = this.url.match(/^\s*https?:\/\/[^/]*/);
|
||||
var m = this.url.match(/^\s*https?:\/\/[^\/]*/);
|
||||
return !m || (m[0] == '#{protocol}//#{domain}#{port}'.interpolate({
|
||||
protocol: location.protocol,
|
||||
domain: document.domain,
|
||||
|
|
Loading…
Reference in New Issue