Skip to content

Commit 704aa40

Browse files
Stop appending &_= to the parameters for non-GET Ajax requests in Safari. We no longer support any version of Safari for which this is necessary. [prototypejs#327 state:resolved] (John-David Dalton, Andrew Dupont)
1 parent ccb929d commit 704aa40

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Stop appending `&_=` to the parameters for non-GET Ajax requests in Safari. We no longer support any version of Safari for which this is necessary. [#327 state:resolved] (John-David Dalton, Andrew Dupont)
2+
13
* Ensure `Form.focusFirstElement` doesn't raise an exception on forms with no fields. [#341 state:resolved] (achernin, Andrew Dupont)
24

35
* Define a `relatedTarget` property on extended mouseenter/mouseleave events in IE's legacy event system. [#708 state:resolved] (Walter Smith, Tobie Langel, Andrew Dupont)

src/ajax/request.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,9 @@ Ajax.Request = Class.create(Ajax.Base, {
189189
this.method = 'post';
190190
}
191191

192-
if (params) {
192+
if (params && this.method === 'get') {
193193
// when GET, append parameters to URL
194-
if (this.method == 'get')
195-
this.url += (this.url.include('?') ? '&' : '?') + params;
196-
else if (/Konqueror|Safari|KHTML/.test(navigator.userAgent))
197-
params += '&_=';
194+
this.url += (this.url.include('?') ? '&' : '?') + params;
198195
}
199196

200197
this.parameters = params.toQueryParams();

0 commit comments

Comments
 (0)