Przeglądaj źródła

Bugfix $ sign in config file

Cerothen 9 lat temu
rodzic
commit
4b714c36fc
1 zmienionych plików z 1 dodań i 1 usunięć
  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);