Fix for empty strings
This commit is contained in:
parent
e451a5e185
commit
cdcf8005a8
@ -1501,6 +1501,7 @@ CREATE OR REPLACE PACKAGE BODY app AS
|
||||
-- parse arguments
|
||||
v_args := app.get_request_url(in_arguments_only => TRUE);
|
||||
--
|
||||
IF v_args IS NOT NULL THEN
|
||||
BEGIN
|
||||
SELECT JSON_OBJECTAGG (
|
||||
REGEXP_REPLACE(REGEXP_SUBSTR(v_args, '[^&]+', 1, LEVEL), '[=].*$', '')
|
||||
@ -1511,8 +1512,9 @@ CREATE OR REPLACE PACKAGE BODY app AS
|
||||
ORDER BY LEVEL;
|
||||
EXCEPTION
|
||||
WHEN OTHERS THEN
|
||||
app.log_error('JSON_ERROR');
|
||||
app.log_error('JSON_ERROR', v_args);
|
||||
END;
|
||||
END IF;
|
||||
|
||||
-- create log
|
||||
RETURN app.log__ (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user