Prechádzať zdrojové kódy

install.php : stripslashes pour migration depuis v0.6

https://github.com/marienfressinaud/FreshRSS/issues/299
Alexandre Alapetite 12 rokov pred
rodič
commit
eb8c4d21af
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      p/i/install.php

+ 2 - 1
p/i/install.php

@@ -423,8 +423,9 @@ function checkStep0 () {
 
 	if (file_exists(DATA_PATH . '/config.php')) {
 		$ini_array = include(DATA_PATH . '/config.php');
-	} elseif (file_exists(DATA_PATH . '/application.ini')) {
+	} elseif (file_exists(DATA_PATH . '/application.ini')) {	//v0.6
 		$ini_array = parse_ini_file(DATA_PATH . '/application.ini', true);
+		$ini_array['general']['title'] = empty($ini_array['general']['title']) ? '' : stripslashes($ini_array['general']['title']);
 	} else {
 		$ini_array = null;
 	}