Browse Source

Properly trim the PATH_INFO.

Joe Clarke 5 years ago
parent
commit
ae95989022
1 changed files with 1 additions and 1 deletions
  1. 1 1
      www/swreg/callhome.php

+ 1 - 1
www/swreg/callhome.php

@@ -51,7 +51,7 @@ if ($logger === false) {
 $mask = Log::UPTO(LOG_LEVEL);
 $logger->setMask($mask);
 
-list($pid, $sn) = explode('/', $_SERVER['PATH_INFO']);
+list($pid, $sn) = explode('/', trim($_SERVER['PATH_INFO'], '/'));
 
 header('Content-type: text/plain');