4
0
Эх сурвалжийг харах

Bugfix $ sign in config file

Cerothen 9 жил өмнө
parent
commit
4b714c36fc
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      functions.php

+ 1 - 1
functions.php

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