Oracle WebCenter Sites (MOSC)

MOSC Banner

WCS populates global variables for URL parameters - can this be disabled?

edited Mar 1, 2014 12:00PM in Oracle WebCenter Sites (MOSC) 6 commentsAnswered

As the documentation explains (Programming with Oracle WebCenter Sites - 11g Release 1 (11.1.1.8.0)) WCS turns all URL parameters into global variables. E.g. If I had a CSElement+SiteEntry called Test and hit ContentServer?pagename=Test&x=y then within the CSElement I could do ics.GetVar("x") and it'd return the value "y". This is very similar to what older version of PHP used to do when register_globals was turned on (a flag which has since been deprecated and then removed as it made it much easier to write insecure code).

Can this automatic URL parameter -> global variable behaviour be explicitly disabled in WCS and then URL parameters accessed in a different manner (e.g. via a request object or similar)?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center