mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-03 02:54:21 +00:00
Merge pull request #132 from denixue/patch-14
Update Templates/Profile/preference.tpl
This commit is contained in:
@@ -21,22 +21,22 @@ if($_POST) {
|
||||
foreach($_POST as $key => $value) {
|
||||
if(substr($key, 0, 2) == 'nr') {
|
||||
$i = substr($key, 2);
|
||||
$links[$i]['nr'] = mysql_escape_string($value);
|
||||
$links[$i]['nr'] = mysql_real_escape_string($value);
|
||||
}
|
||||
|
||||
if(substr($key, 0, 2) == 'id') {
|
||||
$i = substr($key, 2);
|
||||
$links[$i]['id'] = mysql_escape_string($value);
|
||||
$links[$i]['id'] = mysql_real_escape_string($value);
|
||||
}
|
||||
|
||||
if(substr($key, 0, 8) == 'linkname') {
|
||||
$i = substr($key, 8);
|
||||
$links[$i]['linkname'] = mysql_escape_string($value);
|
||||
$links[$i]['linkname'] = mysql_real_escape_string($value);
|
||||
}
|
||||
|
||||
if(substr($key, 0, 8) == 'linkziel') {
|
||||
$i = substr($key, 8);
|
||||
$links[$i]['linkziel'] = mysql_escape_string($value);
|
||||
$links[$i]['linkziel'] = mysql_real_escape_string($value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user