Skip to content

Commit

Permalink
Item10817: Use GET to validate wiki and login name
Browse files Browse the repository at this point in the history
If the shorter URL's is misconfigured and the server redirects a
bin/view/System to /System,  the POST is redirected to a GET and the
jquery fails.  By making the original request as a GET, redirect is
handled and it works.

git-svn-id: http://svn.foswiki.org/trunk@12672 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Oct 1, 2011
1 parent 5f0085a commit 5a5c389
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ jQuery(function($) {
wikiword: true,
remote: {
url: '%SCRIPTURL{view}%/%WEB%/%TOPIC%',
type: 'post',
type: 'get',
data: {
section: 'checkWikiName',
skin: 'text',
Expand All @@ -291,7 +291,7 @@ jQuery(function($) {
required: true,
remote: {
url: '%SCRIPTURL{view}%/%WEB%/%TOPIC%',
type: 'post',
type: 'get',
data: {
section: 'checkLoginName',
skin: 'text',
Expand Down

0 comments on commit 5a5c389

Please sign in to comment.