<?php
/**
* Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved
+ * Copyright 2021, Franck Villaume - TrivialDev
*
* This file is a part of Fusionforge.
*
}
/**
- * Get the value of $variable in $array. If magic_quotes are enabled, the
- * value is escaped.
+ * Get the value of $variable in $array.
*
* @access private
* @param string $variable Name of the parameter to get.
*/
function _get($variable, $array) {
if ($this->_exist($variable, $array)) {
- return (get_magic_quotes_gpc()?$this->_stripslashes($array[$variable]):$array[$variable]);
+ return $array[$variable];
} else {
return false;
}
* FusionForge navigation
*
* Copyright 2009 - 2010, Olaf Lenz
- * Copyright 2011-2012,2016,2020, Franck Villaume - TrivialDev
+ * Copyright 2011-2012,2016,2020-2021, Franck Villaume - TrivialDev
* Copyright 2014, Stéphane-Eymeric Bredthauer
*
* This file is part of FusionForge. FusionForge is free software;
global $words, $forum_id, $group_id, $group_project_id, $atid, $exact, $type_of_search, $HTML;
$res = "";
- if (get_magic_quotes_gpc()) {
- $defaultWords = stripslashes($words);
- } else {
- $defaultWords = $words;
- }
-
- $defaultWords = htmlspecialchars($defaultWords);
// if there is no search currently, set the default
if (!isset($type_of_search) ) {
foreach($parameters AS $name => $value) {
$res .= html_e('input', array('type' => 'hidden', 'value' => $value, 'name' => $name));
}
- $res .= html_e('input', array('type' => 'text', 'size' => 12, 'id' => 'searchBox-words', 'name' => 'words', 'value' => $defaultWords, 'required' => 'required'));
+ $res .= html_e('input', array('type' => 'text', 'size' => 12, 'id' => 'searchBox-words', 'name' => 'words', 'value' => $words, 'required' => 'required'));
$res .= html_e('input', array('type' => 'submit', 'name' => 'Search', 'value' => _('Search')));
if (isset($group_id) && $group_id) {
function check_system() {
$result = array();
- if (get_magic_quotes_gpc()) {
- $result[] = 'Error: Your installation is running with PHP magic_quotes_gpc ON, please change to OFF';
- }
if (ini_get('register_globals')) {
$result[] = 'Error: Your installation is running with PHP register_globals ON, this is very unsecure, please change to OFF';
}