File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 169169// Change these configuration options if needed, see above descriptions for info.
170170$ enable_jsonp = false ;
171171$ enable_native = true ;
172- $ valid_url_regex = '/https:\/\/.*salesforce.com/ ' ;
172+ $ valid_forcecom_url_regex = '/https:\/\/.*.salesforce.com/ ' ;
173+ $ valid_databasecom_url_regex = '/https:\/\/.*database.com/ ' ;
174+
173175
174176$ url_query_param = null ; // 'url'
175177$ url_header = 'HTTP_SALESFORCEPROXY_ENDPOINT ' ;
201203 $ status ['http_code ' ] = 400 ;
202204 $ status ['status_text ' ] = 'Bad Request ' ;
203205
204- } else if ( !preg_match ( $ valid_url_regex , $ url ) ) {
206+ } else if ( !preg_match ( $ valid_forcecom_url_regex , $ url ) && ! preg_match ( $ valid_databasecom_url_regex , $ url ) ) {
205207
206208 // Passed url doesn't match $valid_url_regex.
207209 $ contents = 'ERROR: invalid url ' ;
You can’t perform that action at this time.
0 commit comments