mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +03:00
fix XSS problem in leavemessage
This commit is contained in:
parent
7b5f6192b5
commit
13e5ac59a6
@ -288,7 +288,7 @@ function setup_leavemessage($name, $email, $message, $groupid, $groupname, $info
|
||||
$page['showcaptcha'] = $settings["enablecaptcha"] == "1" && $canshowcaptcha ? "1" : "";
|
||||
$page['formgroupid'] = $groupid;
|
||||
$page['formgroupname'] = $groupname;
|
||||
$page['info'] = topage($info);
|
||||
$page['forminfo'] = topage($info);
|
||||
$page['referrer'] = urlencode(topage($referrer));
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@
|
||||
|
||||
<form name="leaveMessageForm" method="post" action="${webimroot}/leavemessage.php">
|
||||
<input type="hidden" name="style" value="${styleid}"/>
|
||||
<input type="hidden" name="info" value="${page:info}"/>
|
||||
<input type="hidden" name="info" value="${form:info}"/>
|
||||
<input type="hidden" name="referrer" value="${page:referrer}"/>
|
||||
${if:formgroupid}<input type="hidden" name="group" value="${form:groupid}"/>${endif:formgroupid}
|
||||
<table width="100%" cellspacing="0" cellpadding="0" border="0">
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
<form name="leaveMessageForm" method="post" action="${webimroot}/leavemessage.php">
|
||||
<input type="hidden" name="style" value="${styleid}"/>
|
||||
<input type="hidden" name="info" value="${page:info}"/>
|
||||
<input type="hidden" name="info" value="${form:info}"/>
|
||||
<input type="hidden" name="referrer" value="${page:referrer}"/>
|
||||
${if:formgroupid}<input type="hidden" name="group" value="${form:groupid}"/>${endif:formgroupid}
|
||||
<table width="100%" style="height:100%;" cellspacing="0" cellpadding="0" border="0">
|
||||
|
@ -9,7 +9,7 @@
|
||||
<div id="whitebg">
|
||||
<form name="leaveMessageForm" method="post" action="${webimroot}/leavemessage.php">
|
||||
<input type="hidden" name="style" value="${styleid}"/>
|
||||
<input type="hidden" name="info" value="${page:info}"/>
|
||||
<input type="hidden" name="info" value="${form:info}"/>
|
||||
<input type="hidden" name="referrer" value="${page:referrer}"/>
|
||||
${if:formgroupid}<input type="hidden" name="group" value="${form:groupid}"/>${endif:formgroupid}
|
||||
<table cellpadding="0" cellspacing="5" border="0" width="100%">
|
||||
|
Loading…
Reference in New Issue
Block a user