Skip to content

Commit

Permalink
add trim
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Aug 29, 2024
1 parent 779c6b7 commit 8628ec6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/class/mqtt2.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public static function syncTopicToJeedomCloud($_local_topic = '',$_remote_topic
if($_local_topic == '' || $_remote_topic == ''){
throw new Exception(__('Le local topic et le remonte ne peuvent etre vide',__FILE__));
}
$_local_topic = trim($_local_topic);
$_remote_topic = trim($_remote_topic);
$local_authentifications = explode(':', explode("\n", config::byKey('mqtt::password', __CLASS__))[0]);
$conf = "# Begin autogenerate for ".$_local_topic." -> ".$_remote_topic."\n";
$conf .= "connection jeedom-".config::genKey(8)."\n";
Expand Down

0 comments on commit 8628ec6

Please sign in to comment.