Skip to content

Commit

Permalink
SAK-25685 patch from Juan Jose Merono for alias check type of http me…
Browse files Browse the repository at this point in the history
…thod used

git-svn-id: https://source.sakaiproject.org/svn/alias/trunk@307128 66ffb92e-73f9-0310-93c1-f5514f145a0a
  • Loading branch information
ottenhoff committed Mar 17, 2014
1 parent f71a938 commit 27fd7c3
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ public void doEdit(RunData data, Context context)
public void doSave(RunData data, Context context)
{
SessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid());

if (!"POST".equals(data.getRequest().getMethod())) {
return;
}
// read the form - if rejected, leave things as they are
if (!readAliasForm(data, state)) return;

Expand Down Expand Up @@ -420,6 +422,9 @@ public void doRemove(RunData data, Context context)
public void doRemove_confirmed(RunData data, Context context)
{
SessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid());
if (!"POST".equals(data.getRequest().getMethod())) {
return;
}

// get the alias
AliasEdit alias = (AliasEdit) state.getAttribute("alias");
Expand Down

0 comments on commit 27fd7c3

Please sign in to comment.