File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
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_forcecom_url_regex = '/https:\/\/.*.salesforce.com/ ' ;
173- $ valid_databasecom_url_regex = '/https:\/\/.*database.com/ ' ;
172+ $ valid_forcecom_url_regex = '/https:\/\/.*\.(salesforce|database|cloudforce)\.com/ ' ;
174173
175174
176175$ url_query_param = null ; // 'url'
203202 $ status ['http_code ' ] = 400 ;
204203 $ status ['status_text ' ] = 'Bad Request ' ;
205204
206- } else if ( !preg_match ( $ valid_forcecom_url_regex , $ url ) && ! preg_match ( $ valid_databasecom_url_regex , $ url ) ) {
205+ } else if ( !preg_match ( $ valid_forcecom_url_regex , $ url )) {
207206
208207 // Passed url doesn't match $valid_url_regex.
209208 $ contents = 'ERROR: invalid url ' ;
You can’t perform that action at this time.
0 commit comments