Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Bug? Hash character not escaped in item value set in URL

Eric Olson 1Aug 15 2017 — edited Aug 17 2017

I've only just noticed this, but it seems the hash character (#) is not correctly escaped when setting an item value via URL? If I have a button that redirects to a page and sets the value of P1_ITEM to A#B, the URL ends with ...P1_ITEM:A#B, when it should be ...P1_ITEM:A%23B. The # is a reserved character for URLs. If I do the escaping myself and the item value is A%23B, the % character gets escaped and the URL is ...P1_ITEM:A%2523B. Most of the other reserved characters get percent-escaped. I've tried using ## or \#.

Created a demo here: https://apex.oracle.com/pls/apex/f?p=62159:1

One workaround would be to create a dynamic action that builds the properly escaped URL and redirect to that. It just seems odd. Am I missing a way to escape the #?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 14 2017
Added on Aug 15 2017
3 comments
637 views