You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Maarten Billemont (JIRA)" <ji...@apache.org> on 2010/06/03 09:44:54 UTC
[jira] Commented: (WICKET-2906) Missing ) on
AbstractDefaultAjaxBehaviour#getCallbackScript
[ https://issues.apache.org/jira/browse/WICKET-2906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12874995#action_12874995 ]
Maarten Billemont commented on WICKET-2906:
-------------------------------------------
OK, so this string is an unmatched JS function invocation by design. That is just nasty.
How about you convert it to something safe and correct like generateCallbackScript(String function, String... args) ?
Then you'd do:
{code}
protected CharSequence getCallbackScript(boolean onlyTargetActivePage)
{
return generateCallbackScript("wicketAjaxGet", getCallbackUrl(onlyTargetActivePage));
}
{code}
Immediately fixing the potentially broken inject-an-arbitrary-string-in-a-literally-quoted-value too.
> Missing ) on AbstractDefaultAjaxBehaviour#getCallbackScript
> -----------------------------------------------------------
>
> Key: WICKET-2906
> URL: https://issues.apache.org/jira/browse/WICKET-2906
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Reporter: Maarten Billemont
> Fix For: 1.4.7
>
>
> Am I blindly overlooking something, or are we missing a ) here, in AbstractDefaultAjaxBehaviour#getCallbackScript (at line 119):
> {code}
> protected CharSequence getCallbackScript(boolean onlyTargetActivePage)
> {
> return generateCallbackScript("wicketAjaxGet('" + getCallbackUrl(onlyTargetActivePage) +
> "'");
> }
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.