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