code
stringlengths
41
2.04k
label_name
stringclasses
2 values
label
int64
0
1
public function action_edge_mode_enable() { w3_require_once(W3TC_INC_FUNCTIONS_DIR . '/activation.php'); $config_path = w3_get_wp_config_path(); $config_data = @file_get_contents($config_path); if ($config_data === false) return; $new_config_data = $this->wp_con...
CWE-352
0
static function cronCheckUpdate($task) { $result = Toolbox::checkNewVersionAvailable(1); $task->log($result); return 1; }
CWE-352
0
protected function __construct() { parent::__construct(); self::$locale = fusion_get_locale('', LOCALE.LOCALESET.'search.php'); }
CWE-352
0
public static function recent($vars, $type = 'post') { $sql = "SELECT * FROM `posts` WHERE `type` = '{$type}' ORDER BY `date` DESC LIMIT {$vars}"; $posts = Db::result($sql); if(isset($posts['error'])){ $posts['error'] = "No Posts found."; }else{ $posts = $post...
CWE-352
0
public static function getId($id=''){ if(isset($id)){ $sql = sprintf("SELECT * FROM `menus` WHERE `id` = '%d' ORDER BY `order` ASC", $id); $menus = Db::result($sql); $n = Db::$num_rows; }else{ $menus = ''; } return $menus; ...
CWE-352
0
public function archive(){ $login_user = $this->checkLogin(); $item_id = I("item_id/d"); $password = I("password"); $item = D("Item")->where("item_id = '$item_id' ")->find(); if(!$this->checkItemManage($login_user['uid'] , $item['item_id'])){ $this->sendError(...
CWE-352
0
static function canView() { return Session::haveRight(self::$rightname, READ); }
CWE-352
0
public static function RemoveTransaction($id) { $sFilepath = APPROOT.'data/transactions/'.$id; clearstatcache(true, $sFilepath); if (!file_exists($sFilepath)) { $bSuccess = false; self::Error("RemoveTransaction: Transaction '$id' not found. Pending transactions for this user:\n" .implode("\n", self::G...
CWE-352
0
public function startup(Event $event) { $controller = $event->subject(); $request = $controller->request; $response = $controller->response; $cookieName = $this->_config['cookieName']; $cookieData = $request->cookie($cookieName); if ($cookieData) { $r...
CWE-352
0
public function testPinCommentAction() { $client = $this->getClientForAuthenticatedUser(User::ROLE_ADMIN); $this->assertAccessIsGranted($client, '/admin/customer/1/details'); $form = $client->getCrawler()->filter('form[name=customer_comment_form]')->form(); $client->submit($form,...
CWE-352
0
public function delete(){ $login_user = $this->checkLogin(); $uid = $login_user['uid'] ; $id = I("id/d")? I("id/d") : 0; $teamItemInfo = D("TeamItem")->where(" id = '$id' ")->find(); $item_id = $teamItemInfo['item_id'] ; $team_id = $teamItemInfo['team_id'] ; ...
CWE-352
0
public function deleteUser(){ $login_user = $this->checkLogin(); $this->checkAdmin(); $uid = I("uid/d"); if (D("Item")->where("uid = '$uid' and is_del = 0 ")->find()) { $this->sendError(10101,"该用户名下还有项目,不允许删除。请先将其项目删除或者重新分配/转让"); return ; } $re...
CWE-352
0
foreach ($indexesOld as $index) { if (\in_array('name', $index->getColumns()) || \in_array('mail', $index->getColumns())) { $this->indexesOld[] = $index; $this->addSql('DROP INDEX ' . $index->getName() . ' ON ' . $users); } }
CWE-352
0
$debug_info .= sprintf("%s%s\r\n", str_pad($header_name . ': ', 20), w3_escape_comment($header_value)); } }
CWE-352
0
function append_token_to_url() { return '/&token_submit=' . $_SESSION['Token']; }
CWE-352
0
public function delete($id) { $this->auth->checkIfOperationIsAllowed('delete_user'); //Test if user exists $data['users_item'] = $this->users_model->getUsers($id); if (empty($data['users_item'])) { redirect('notfound'); } else { $this->users_model->del...
CWE-352
0
public function __construct() { parent::__construct(); $this->middleware( function ($request, $next) { app('view')->share('title', (string) trans('firefly.currencies')); app('view')->share('mainTitleIcon', 'fa-usd'); $this->repository ...
CWE-352
0
function execute( $par ) { $request = $this->getRequest(); $output = $this->getOutput(); $language = $this->getLanguage(); $output->setPageTitle( $this->msg( "confirmaccounts" )->escaped() ); $output->addModules('ext.scratchConfirmAccount.js'); $output->addModuleStyles('ext.scratchConfirmAccount.cs...
CWE-352
0
public static function get_param($key = NULL) { $info = [ 'stype' => self::$search_type, 'stext' => self::$search_text, 'method' => self::$search_method, 'datelimit' => self::$search_date_limit, 'fields' => self::$searc...
CWE-352
0
public function disable($id) { $this->active($id, FALSE); }
CWE-352
0
echo '<input type="hidden" name="' . esc_attr( $field ) . '" value="' . esc_attr( wp_unslash( $_POST[ $field ] ) ) . '" />'; }
CWE-352
0
public function updateInfo(){ $user = $this->checkLogin(); $uid = $user['uid']; $name = I("name"); D("User")->where(" uid = '$uid' ")->save(array("name"=>$name)); $this->sendResult(array()); }
CWE-352
0
public function delete(){ $page_id = I("page_id/d")? I("page_id/d") : 0; $page = D("Page")->where(" page_id = '$page_id' ")->find(); $login_user = $this->checkLogin(); if (!$this->checkItemManage($login_user['uid'] , $page['item_id']) && $login_user['uid'] != $page['author_uid']) { ...
CWE-352
0
public static function getParent($parent='', $menuid = ''){ if(isset($menuid)){ $where = " AND `menuid` = '{$menuid}'"; }else{ $where = ''; } $sql = sprintf("SELECT * FROM `menus` WHERE `parent` = '%s' %s", $parent, $where); $menu = Db::result($sql); ...
CWE-352
0
public static function secureCompare($known, $user) { if (function_exists('hash_equals')) { // use hash_equals() if available (PHP >= 5.6) return hash_equals($known, $user); } // compare manually in constant time $len = mb_strlen($known, '8bit'); // see m...
CWE-384
1
public function resetKey(){ $login_user = $this->checkLogin(); $item_id = I("item_id/d"); $item = D("Item")->where("item_id = '$item_id' ")->find(); if(!$this->checkItemManage($login_user['uid'] , $item['item_id'])){ $this->sendError(10303); return ; ...
CWE-352
0
function load() { w3_require_once(W3TC_INC_FUNCTIONS_DIR . '/admin.php'); $this->_page = w3tc_get_current_page(); /** * Run plugin action */ $action = false; foreach ($_REQUEST as $key => $value) { if (strpos($key, 'w3tc_') === 0) { ...
CWE-352
0
public function duplicateTeam(Team $team, Request $request) { $newTeam = clone $team; $newTeam->setName($team->getName() . ' [COPY]'); try { $this->repository->saveTeam($newTeam); $this->flashSuccess('action.update.success'); return $this->redirectTo...
CWE-352
0
function csrf_start() { if ($GLOBALS['csrf']['auto-session'] && session_status() == PHP_SESSION_NONE) { session_start(); } }
CWE-352
0
function yourls_create_nonce( $action, $user = false ) { if( false == $user ) $user = defined( 'YOURLS_USER' ) ? YOURLS_USER : '-1'; $tick = yourls_tick(); $nonce = substr( yourls_salt($tick . $action . $user), 0, 10 ); // Allow plugins to alter the nonce return yourls_apply_filter( 'create_nonce', $nonce, $acti...
CWE-352
0
public function deleteCommentAction(CustomerComment $comment) { $customerId = $comment->getCustomer()->getId(); try { $this->repository->deleteComment($comment); } catch (\Exception $ex) { $this->flashDeleteException($ex); } return $this->redirec...
CWE-352
0
public function edit(Request $request, TransactionCurrency $currency) { /** @var User $user */ $user = auth()->user(); if (!$this->userRepository->hasRole($user, 'owner')) { $request->session()->flash('error', (string) trans('firefly.ask_site_owner', ['owner' => e(config('fi...
CWE-352
0
public function active($id, $active) { $this->auth->checkIfOperationIsAllowed('list_users'); $this->users_model->setActive($id, $active); $this->session->set_flashdata('msg', lang('users_edit_flash_msg_success')); redirect('users'); }
CWE-352
0
static function getTypeName($nb = 0) { return __('Maintenance'); }
CWE-352
0
public static function post($vars) { switch (SMART_URL) { case true: # code... $url = Options::get('siteurl')."/".self::slug($vars)."/{$vars}"; break; default: # code... $url = Options::get('...
CWE-352
0
public function __construct(UserInviteService $inviteService, LoginService $loginService, UserRepo $userRepo) { $this->middleware('guest'); $this->middleware('guard:standard'); $this->inviteService = $inviteService; $this->loginService = $loginService; $this->userRepo = ...
CWE-352
0
function OA_runMPE() { $objResponse = new xajaxResponse(); $objResponse->addAssign("run-mpe", "innerHTML", "<img src='run-mpe.php' />"); return $objResponse; }
CWE-352
0
private function mailPassthru($to, $subject, $body, $header, $params) { //Check overloading of mail function to avoid double-encoding if (ini_get('mbstring.func_overload') & 1) { $subject = $this->secureHeader($subject); } else { $subject = $this->encodeHeader($th...
CWE-352
0
public function addAddress($address, $name = '') { return $this->addAnAddress('to', $address, $name); }
CWE-352
0
public function __construct () { if (self::existConf()) { # code... self::config('config'); self::lang(GX_LANG); }else{ GxMain::install(); } }
CWE-352
0
public function attorn(){ $login_user = $this->checkLogin(); $this->checkAdmin(); $username = I("username"); $item_id = I("item_id/d"); $item = D("Item")->where("item_id = '$item_id' ")->find(); $member = D("User")->where(" username = '%s' ",array($username))->fin...
CWE-352
0
public function validateRequest(App\Request $request) { $request->validateReadAccess(); }
CWE-352
0
public function __construct($exceptions = false) { $this->exceptions = ($exceptions == true); }
CWE-352
0
public function batUpdate(){ $cats = I("cats"); $item_id = I("item_id/d"); $login_user = $this->checkLogin(); if (!$this->checkItemEdit($login_user['uid'] , $item_id)) { $this->sendError(10103); return ; } $ret = ''; $data_array = json_...
CWE-352
0
public static function get_param($key = NULL) { $info = [ 'stype' => htmlentities(self::$search_type), 'stext' => htmlentities(self::$search_text), 'method' => htmlentities(self::$search_method), 'datelimit' => self::$search_date_limit, ...
CWE-352
0
public function duplicateAction(Project $project, Request $request, ProjectDuplicationService $projectDuplicationService) { $newProject = $projectDuplicationService->duplicate($project, $project->getName() . ' [COPY]'); return $this->redirectToRoute('project_details', ['id' => $newProject->getI...
CWE-352
0
public function addBCC($address, $name = '') { return $this->addAnAddress('bcc', $address, $name); }
CWE-352
0
click: function(p,o) { p.on(o.event, o.children, function(e){ if(f.detect.leftMouse(e)) { if ($(e.target).hasClass('ch-toggle') || $(e.target).hasClass('check-label') || ( $(e.target).hasClass('l-unit-toolbar__col--l...
CWE-352
0
$scope.reset = function() { bootbox.confirm('Are you sure you want to reset the foreign source definition to the default ?', function(ok) { if (ok) { RequisitionsService.startTiming(); RequisitionsService.deleteForeignSourceDefinition($scope.foreignSource).then( functio...
CWE-352
0
wp.updates.requestFilesystemCredentials = function( event ) { if ( wp.updates.updateDoneSuccessfully === false ) { /* * For the plugin install screen, return the focus to the install button * after exiting the credentials request modal. */ if ( 'plugin-install' === pagenow && event ) { wp.updat...
CWE-352
0
function set_utilization(type, entity_id, name, value) { var data = { name: name, value: value }; if (type == "node") { data["node"] = entity_id; } else if (type == "resource") { data["resource_id"] = entity_id; } else return false; var url = get_cluster_remote_url() + "set_" + type + "_util...
CWE-384
1
function genericAjaxPopupDestroy($layer) { $popup = genericAjaxPopupFetch($layer); if(null != $popup) { genericAjaxPopupClose($layer); try { $popup.dialog('destroy'); $popup.unbind(); } catch(e) { } $($('#devblocksPopups').data($layer)).remove(); // remove DOM $('#devblocksPopups').removeData($layer);...
CWE-352
0
$scope.provision = function() { $scope.isSaving = true; growl.info($sanitize('The node ' + $scope.node.nodeLabel + ' is being added to requisition ' + $scope.node.foreignSource + '. Please wait...')); var successMessage = $sanitize('The node ' + $scope.node.nodeLabel + ' has been added to requisit...
CWE-352
0
plugin: $( this ).data( 'plugin' ), slug: $( this ).data( 'slug' ) } }; target.postMessage( JSON.stringify( job ), window.location.origin ); }); } ); $( window ).on( 'message', function( e ) { var event = e.originalEvent, message, loc = document.location, expectedOrigin = loc.proto...
CWE-352
0
render: function() { var data = this.model.toJSON(); // Render themes using the html template this.$el.html( this.html( data ) ).attr({ tabindex: 0, 'aria-describedby' : data.id + '-action ' + data.id + '-name' }); // Renders active theme styles this.activeTheme(); if ( this.model.get( 'displayAu...
CWE-352
0
function remove_cluster(ids) { var data = {}; $.each(ids, function(_, cluster) { data[ "clusterid-" + cluster] = true; }); $.ajax({ type: 'POST', url: '/manage/removecluster', data: data, timeout: pcs_timeout, success: function () { $("#dialog_verify_remove_clusters.ui-dialog-conte...
CWE-384
1
$scope.deleteNode = function(node) { bootbox.confirm('Are you sure you want to remove the node ' + node.nodeLabel + '?', function(ok) { if (ok) { RequisitionsService.startTiming(); RequisitionsService.deleteNode(node).then( function() { // success var inde...
CWE-352
0
form.append($('<input>', { name: i, value: JSON.stringify(postData[i]) })); } $('body').append(form); form.submit(); } else { window.location.href = url; } },
CWE-352
0
wp.updates.showErrorInCredentialsForm = function( message ) { var $modal = $( '.notification-dialog' ); // Remove any existing error. $modal.find( '.error' ).remove(); $modal.find( 'h3' ).after( '<div class="error">' + message + '</div>' ); };
CWE-352
0
$scope.initialize = function(customHandler) { var value = $cookies.get('requisitions_page_size'); if (value) { $scope.pageSize = value; } growl.success('Retrieving requisition ' + $scope.foreignSource + '...'); RequisitionsService.getRequisition($scope.foreignSource).then( ...
CWE-352
0
$scope.refresh = function() { growl.success('Retrieving node ' + $scope.foreignId + ' from requisition ' + $scope.foreignSource + '...'); RequisitionsService.getNode($scope.foreignSource, $scope.foreignId).then( function(node) { // success $scope.node = node; }, $scope....
CWE-352
0
this.goto_url('export', { _source: this.env.source, _gid: this.env.group, _cid: this.contact_list.get_selection().join(',') }); } break; case 'upload-photo': this.upload_contact_photo(props || this.gui_objects.uploadform); break; case 'delete-photo': this....
CWE-352
0
function genericAjaxPopupFind($sel) { $devblocksPopups = $('#devblocksPopups'); $data = $devblocksPopups.data(); $element = $($sel).closest('DIV.devblocks-popup'); for($key in $data) { if($element.attr('id') == $data[$key].attr('id')) return $data[$key]; } return null; }
CWE-352
0
$scope.removeAllNodes = function(foreignSource) { bootbox.confirm('Are you sure you want to remove all the nodes from ' + foreignSource + '?', function(ok) { if (ok) { RequisitionsService.startTiming(); RequisitionsService.removeAllNodesFromRequisition(foreignSource).then( ...
CWE-352
0
$scope.add = function() { bootbox.prompt('Please enter the name for the new requisition', function(foreignSource) { if (foreignSource) { // Validate Requisition if (foreignSource.match(/[/\\?:&*'"]/)) { bootbox.alert('Cannot add the requisition ' + foreignSource + ' bec...
CWE-352
0
function checkExistingNode() { var node = ""; $('input[name="node-name"]').each(function(i,e) { node = e.value; }); $.ajax({ type: 'GET', url: '/manage/check_pcsd_status', data: {"nodes": node}, timeout: pcs_timeout, success: function (data) { mydata = jQuery.parseJSON(data); ...
CWE-384
1
var doSynchronize = function(requisition, rescanExisting) { RequisitionsService.startTiming(); RequisitionsService.synchronizeRequisition(requisition.foreignSource, rescanExisting).then( function() { // success growl.success('The import operation has been started fo...
CWE-352
0
expand: function( id ) { var self = this; // Set the current theme model this.model = self.collection.get( id ); // Trigger a route update for the current model themes.router.navigate( themes.router.baseUrl( themes.router.themePath + this.model.id ) ); // Sets this.view to 'detail' this.setView( 'deta...
CWE-352
0
link: function(scope, element, attrs) { var width = 120; var height = 39; var div = $('<div class="terminal">A</div>').css({ position: 'absolute', left: -1000, top: -1000, display: 'block', padding: 0, margin...
CWE-352
0
$scope.initialize = function() { growl.success('Retrieving definition for requisition ' + $scope.foreignSource + '...'); RequisitionsService.getForeignSourceDefinition($scope.foreignSource).then( function(foreignSourceDef) { // success $scope.foreignSourceDef = foreignSourceDef; ...
CWE-352
0
function updateActionButtons() { if (0 !== count) { $('.action-menu').show(); // also update labels: $('.mass-edit span').text(edit_selected_txt + ' (' + count + ')'); $('.bulk-edit span').text(edit_bulk_selected_txt + ' (' + count + ')'); $('.mass-delete span').text(delete_...
CWE-352
0
wp.updates.updateSuccess = function( response ) { var $updateMessage, name, $pluginRow, newText; if ( 'plugins' === pagenow || 'plugins-network' === pagenow ) { $pluginRow = $( '[data-plugin="' + response.plugin + '"]' ).first(); $updateMessage = $pluginRow.next().find( '.update-message' ); $pluginRow.add...
CWE-352
0
$scope.save = function() { var form = this.fsForm; RequisitionsService.startTiming(); RequisitionsService.saveForeignSourceDefinition($scope.foreignSourceDef).then( function() { // success growl.success('The definition for the requisition ' + $scope.foreignSource + ' has been sav...
CWE-352
0
function permissions_load_cluster(cluster_name, callback) { var element_id = "permissions_cluster_" + cluster_name; $.ajax({ type: "GET", url: "/permissions_cluster_form/" + cluster_name, timeout: pcs_timeout, success: function(data) { $("#" + element_id).html(data); $("#" + element_id +...
CWE-384
1
slug: $( this ).data( 'slug' ) } }; target.postMessage( JSON.stringify( job ), window.location.origin ); });
CWE-352
0
this.goto_url = function(action, query, lock) { this.redirect(this.url(action, query), lock); };
CWE-352
0
wp.updates.requestForCredentialsModalOpen = function() { var $modal = $( '#request-filesystem-credentials-dialog' ); $( 'body' ).addClass( 'modal-open' ); $modal.show(); $modal.find( 'input:enabled:first' ).focus(); $modal.keydown( wp.updates.keydown ); };
CWE-352
0
$scope.add = function() { bootbox.prompt('Please enter the name for the new requisition', function(foreignSource) { if (foreignSource) { // Validate Requisition if (foreignSource.match(/[/\\?:&*'"]/)) { bootbox.alert('Cannot add the requisition ' + foreignSource + ' bec...
CWE-352
0
url: getPath() + "/shutdown", data: {"parameter":2}, success: function success(data) { $("#spinner2").hide(); $("#DialogContent").html(data.text); $("#DialogFinished").removeClass("hidden"); } }); });
CWE-352
0
requestForm: function (url, params = {}) { app.openUrlMethodPost(url, params); }
CWE-352
0
function updateTotalBudgetedAmount(currencyId) { // fade info away: $('span.budgeted_amount[data-currency="' + currencyId + '"]') .fadeTo(100, 0.1, function () { //$(this).fadeTo(500, 1.0); }); // get new amount: $.get(totalBudgetedUri.replace('REPLACEME',currencyId)).done(f...
CWE-352
0
$scope.addRequisition = function() { bootbox.prompt('A requisition is required, please enter the name for a new requisition', function(foreignSource) { if (foreignSource) { RequisitionsService.addRequisition(foreignSource).then( function() { // success RequisitionsS...
CWE-352
0
SessionManager.prototype.logIn = function(req, user, cb) { var self = this; this._serializeUser(user, req, function(err, obj) { if (err) { return cb(err); } // TODO: Error if session isn't available here. if (!req.session) { req.session = {}; } if (!req.session[self._key]) { ...
CWE-384
1
slug: $( this ).data( 'slug' ) } }; target.postMessage( JSON.stringify( job ), window.location.origin ); }); } );
CWE-352
0
this.changeUserSettingsIndifferent = function(attr,value){ $.get(this.wwwDir+ 'user/setsettingajax/'+attr+'/'+encodeURIComponent(value)+'/(indifferent)/true'); };
CWE-352
0
var doSynchronize = function(requisition, rescanExisting) { RequisitionsService.startTiming(); RequisitionsService.synchronizeRequisition(requisition.foreignSource, rescanExisting).then( function() { // success growl.success('The import operation has been started fo...
CWE-352
0
Comments.init = function(params, callback) { var app = params.router, middleware = params.middleware, controllers = params.controllers; fs.readFile(path.resolve(__dirname, './public/templates/comments/comments.tpl'), function (err, data) { Comments.template = data.toString(); }); app.get('/commen...
CWE-352
0
goToFullForm(form) { //As formData contains information about both view and action removed action and directed to view form.find('input[name="action"]').remove(); form.append('<input type="hidden" name="view" value="Edit" />'); $.each(form.find('[data-validation-engine]'), function (key, data) { ...
CWE-352
0
changePassword: function(newPassword) { var d = $q.defer(), loginCookie = readLoginCookie(); $http({ method: 'POST', url: '/SOGo/so/changePassword', data: { userName: loginCookie[0], password: loginCookie[1], ...
CWE-352
0
data: {config_calibre_dir: $("#config_calibre_dir").val()}, success: function success(data) { if ( data.change ) { if ( data.valid ) { confirmDialog( "db_submit", "GeneralChangeModal", ...
CWE-352
0
wp.updates.requestForCredentialsModalCancel = function() { // no updateLock and no updateQueue means we already have cleared things up var data, $message; if( wp.updates.updateLock === false && wp.updates.updateQueue.length === 0 ){ return; } data = wp.updates.updateQueue[0].data; // remove the lock,...
CWE-352
0
function update() { if (sending == 0) { sending = 1; sled.className = 'on'; var r = new XMLHttpRequest(); var send = ""; while (keybuf.length > 0) { send += keybuf.pop(); } var query = query1 + send; if (for...
CWE-352
0
wp.updates.requestForCredentialsModalClose = function() { $( '#request-filesystem-credentials-dialog' ).hide(); $( 'body' ).removeClass( 'modal-open' ); wp.updates.$elToReturnFocusToFromCredentialsModal.focus(); };
CWE-352
0
error: function(xhr, status, error) { if ((status == "timeout") || ($.trim(error) == "timeout")) { /* We are not interested in timeout because: - it can take minutes to stop a node (resources running on it have to be stopped/moved and we do not need to wait for that) ...
CWE-384
1
gogo.Terminal = function(div, width, height, authHeader) { return new this.Terminal_ctor(div, width, height, authHeader); }
CWE-352
0
function setup_node_links() { Ember.debug("Setup node links"); $("#node_start").click(function() { node_link_action( "#node_start", get_cluster_remote_url() +"cluster_start", "start" ); }); $("#node_stop").click(function() { var node = $.trim($("#node_info_header_title_name").text()); fade...
CWE-384
1
wp.updates.updatePlugin = function( plugin, slug ) { var $message, name, $card = $( '.plugin-card-' + slug ); if ( 'plugins' === pagenow || 'plugins-network' === pagenow ) { $message = $( '[data-plugin="' + plugin + '"]' ).next().find( '.update-message' ); } else if ( 'plugin-install' === pagenow ) { $...
CWE-352
0
singleClick: function(p,c,o) { var s = f.get.siblings(p,o); f.h.off(s, o); f.h.on(c.current.v, o); f.set.clicks(c.current.v, null, null, p, o); },
CWE-352
0
function load_agent_form(resource_id, stonith) { var url; var form; if (stonith) { form = $("#stonith_agent_form"); url = '/managec/' + Pcs.cluster_name + '/fence_device_form'; } else { form = $("#resource_agent_form"); url = '/managec/' + Pcs.cluster_name + '/resource_form?version=2'; } fo...
CWE-384
1
$scope.refresh = function() { growl.success('Retrieving node ' + $scope.foreignId + ' from requisition ' + $scope.foreignSource + '...'); RequisitionsService.getNode($scope.foreignSource, $scope.foreignId).then( function(node) { // success $scope.node = node; }, $scope....
CWE-352
0