mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 13:02:15 +09:00
Fixed a template bug for generating form inputs
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9554 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7cab982d2f
commit
40a63fac84
2 changed files with 2 additions and 2 deletions
|
|
@ -231,7 +231,7 @@
|
||||||
$generatedHidden = '';
|
$generatedHidden = '';
|
||||||
foreach($resultArray AS $key=>$value)
|
foreach($resultArray AS $key=>$value)
|
||||||
{
|
{
|
||||||
$generatedHidden .= '<input type="hidden" name="'.$value.'" value="<?php echo $'.$value.' ?>">';
|
$generatedHidden .= '<input type="hidden" name="'.$value.'" value="<?php echo $__Context->'.$value.' ?>">';
|
||||||
}
|
}
|
||||||
$matches[2] = $generatedHidden.$matches[2];
|
$matches[2] = $generatedHidden.$matches[2];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -177,7 +177,7 @@ class TemplateHandlerTest extends PHPUnit_Framework_TestCase
|
||||||
// error case - inline javascript
|
// error case - inline javascript
|
||||||
array(
|
array(
|
||||||
'<form onsubmit="jQuery(this).find(\'input\').each(function(){if(this.title==this.value)this.value=\'\';}); return procFilter(this, insert_comment)"></form>',
|
'<form onsubmit="jQuery(this).find(\'input\').each(function(){if(this.title==this.value)this.value=\'\';}); return procFilter(this, insert_comment)"></form>',
|
||||||
'<form onsubmit="jQuery(this).find(\'input\').each(function(){if(this.title==this.value)this.value=\'\';}); return procFilter(this, insert_comment)"><input type="hidden" name="error_return_url" value="<?php echo getRequestUriByServerEnviroment() ?>" /><input type="hidden" name="act" value="<?php echo $act ?>"><input type="hidden" name="mid" value="<?php echo $mid ?>"><input type="hidden" name="vid" value="<?php echo $vid ?>"></form>'
|
'<form onsubmit="jQuery(this).find(\'input\').each(function(){if(this.title==this.value)this.value=\'\';}); return procFilter(this, insert_comment)"><input type="hidden" name="error_return_url" value="<?php echo getRequestUriByServerEnviroment() ?>" /><input type="hidden" name="act" value="<?php echo $__Context->act ?>"><input type="hidden" name="mid" value="<?php echo $__Context->mid ?>"><input type="hidden" name="vid" value="<?php echo $__Context->vid ?>"></form>'
|
||||||
),
|
),
|
||||||
// issue 103
|
// issue 103
|
||||||
array(
|
array(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue