|
From: <rgr...@us...> - 2013-08-16 03:06:31
|
Revision: 11929
http://sourceforge.net/p/xoops/svn/11929
Author: rgriffith
Date: 2013-08-16 03:06:22 +0000 (Fri, 16 Aug 2013)
Log Message:
-----------
Remove random number appended to id of hidden elements.
No documentation why this was added. It breaks javascript access to what could be vital data.
Modified Paths:
--------------
XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formhidden.php
Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formhidden.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formhidden.php 2013-08-16 03:02:06 UTC (rev 11928)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formhidden.php 2013-08-16 03:06:22 UTC (rev 11929)
@@ -50,6 +50,6 @@
*/
public function render()
{
- return '<input type="hidden" name="' . $this->getName() . '" id="' . $this->getName() . rand(1,99) . '" value="' . $this->getValue() . '" >' . NWLINE;
+ return '<input type="hidden" name="' . $this->getName() . '" id="' . $this->getName() . '" value="' . $this->getValue() . '" >' . NWLINE;
}
-}
\ No newline at end of file
+}
|