From f0f5ff02b344ebf02f2a8a6c1e878f692411e3b1 Mon Sep 17 00:00:00 2001 From: Tony Fernandez Date: Tue, 1 Apr 2025 09:12:26 -0400 Subject: [PATCH] bug fix - music on hold path --- resources/switch.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/switch.php b/resources/switch.php index fa72e0ba13..7246430c3c 100644 --- a/resources/switch.php +++ b/resources/switch.php @@ -989,13 +989,12 @@ if(!function_exists('path_join')) { } $prefix = null; - foreach ($paths as $path) { + foreach ($paths as $index => $path) { if($prefix === null && !empty($path)) { if(substr($path, 0, 1) == '/') $prefix = '/'; else $prefix = ''; } - $path = trim( $path, '/' ); - $path = trim( $path, '\\' ); + $paths[$index] = trim($path, '/\\'); } if($prefix === null){