소스 검색

Filter API key before saving.

Peter Richter 5 년 전
부모
커밋
ec401fdd62
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tripal_chado/includes/loaders/tripal_chado.pub_importers.inc

+ 1 - 1
tripal_chado/includes/loaders/tripal_chado.pub_importers.inc

@@ -512,7 +512,7 @@ function tripal_pub_importer_ncbi_api_key_form($form, $form_state) {
  * @ingroup tripal_pub
  */
 function tripal_pub_importer_set_ncbi_api_key($form, $form_state) {
-  variable_set('tripal_pub_importer_ncbi_api_key', $form_state['values']['ncbi_api_key']);
+  variable_set('tripal_pub_importer_ncbi_api_key', check_plain($form_state['values']['ncbi_api_key']));
   drupal_set_message('NCBI API key has been saved successfully!');
   return $form['ncbi_api_key'];
 }