Jelajahi Sumber

Bugfix $ sign in config file

Cerothen 9 tahun lalu
induk
melakukan
4b714c36fc
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      functions.php

+ 1 - 1
functions.php

@@ -779,7 +779,7 @@ function createConfig($array, $path = 'config/config.php', $nest = 0) {
 				$item = $v;
 				$item = $v;
 				break;
 				break;
 			case 'string':
 			case 'string':
-				$item = '"'.addslashes($v).'"';
+				$item = '"'.addcslashes($v,'\'"\\$').'"';
 				break;
 				break;
 			case 'array':
 			case 'array':
 				$item = createConfig($v, false, $nest+1);
 				$item = createConfig($v, false, $nest+1);