MCPcopy Create free account
hub / github.com/baidu/openrasp / setBackendUrl

Method setBackendUrl

rasp-install/php/install.php:175–187  ·  view source on GitHub ↗
($backend_url)

Source from the content-addressed store, hash-verified

173 }
174
175 public function setBackendUrl($backend_url)
176 {
177 if (!empty($backend_url)) {
178 if (parse_url($backend_url)) {
179 log_tips(INFO, "openrasp.backend_url => " . $backend_url);
180 $this->backend_url = $backend_url;
181 } else {
182 log_tips(ERROR, "backend-url option is an illegal URL.");
183 }
184 } else {
185 log_tips(ERROR, "backend-url option cannot be empty.");
186 }
187 }
188
189 public function setAppId($app_id)
190 {

Callers 1

install.phpFile · 0.80

Calls 2

log_tipsFunction · 0.85
emptyFunction · 0.50

Tested by

no test coverage detected