We have moved to Github. Please open tickets there.

Opened 2 years ago

Closed 23 months ago

#3513 closed Defect (wontfix)

expose_function could take array as function name

Reported by: vazco Owned by:
Priority: normal Milestone: Near Term Future Release
Component: Core Version: 1.8 Beta
Severity: minor Keywords:
Cc: brett@… Difficulty:

Description

expose_function could use call_user_func($function) instead of eval to launch function in REST. This would allow to expose not only functions but also methods to REST

Change History (2)

comment:1 Changed 23 months ago by ewinslow

  • Milestone changed from Needs Review to Elgg 1.9

comment:2 Changed 23 months ago by cash

  • Resolution set to wontfix
  • Status changed from new to closed

We cannot actually do this because we have this hackish way of calling functions using eval in the web services code. I have started on a new set of web services that are actually RESTful rather than the current RPC web services that we sometimes call REST. It will use call_user_func(). I'll create a new ticket for the web services.

Note: See TracTickets for help on using tickets.