Missing closing tag in button helper [0000176]
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 19 Oct 2009 06:38:23 +0000 (06:38 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Mon, 19 Oct 2009 06:38:23 +0000 (06:38 +0000)
CHANGELOG.txt
includes/ui/ui_input.inc

index a78c2d14d651828ad3a36a7d11b776e5ca72f0f0..7f6e1c961ec6d4aaa1b263a4854501730df8f375 100644 (file)
@@ -19,9 +19,11 @@ Legend:
 ! -> Note
 $ -> Affected files
 
-18-Oct-2009 Joe Hunt
-# Fixed double escaping gl account name on add/update.
+18-Oct-2009 Janusz Dobrowolski
+# [0000175] Fixed double escaping gl account name on add/update.
 $ /gl/includes/db/gl_db_accounts.inc
+# [0000176] Missing closing tag in button helper 
+$ /includes/ui/ui_input.inc
 
 ------------------------------- Release 2.1.7 ----------------------------------
 ! Seccurity release 2.1.7. We strongly encourage to update to this release.
index f5a127c0ecb7746401a57e16916f55be03f86cb2..5a21af3dfd357b566b7207978b153f2e62021e2f 100644 (file)
@@ -65,7 +65,11 @@ function simple_page_mode($numeric_id = true)
                        if (strpos($p, $m) === 0) {
 //                             $selected_id = strtr(substr($p, strlen($m)), array('%2E'=>'.'));
                                unset($_POST['_focus']); // focus on first form entry
-                               $selected_id = quoted_printable_decode(substr($p, strlen($m)));
+
+//                             $selected_id = strtr(html_entity_decode(substr($p, strlen($m)), ENT_QUOTES), 
+                               $selected_id = strtr(substr($p, strlen($m)), 
+                                       array('=2E'=>'.','=20'=>' ','=3D'=>'=','=5B'=>'['));
+//                             $selected_id = quoted_printable_decode(substr($p, strlen($m)));
                                $Ajax->activate('_page_body');
                                $Mode = $m;
                                return;
@@ -232,7 +236,7 @@ function button($name, $value, $title=false, $icon=false)
                        $icon = ICON_DELETE;
                return "<button type='submit' class='editbutton' name='".
                        htmlentities(strtr($name, array('.'=>'=2E',' '=>'=20','='=>'=3D','['=>'=5B'))).
-                       "' value='1'" . ($title ? " title='$title'":" title='$value'")." />".set_icon($icon)."\n";
+                       "' value='1'" . ($title ? " title='$title'":" title='$value'")." />".set_icon($icon)."</button>\n";
        }
        else
                return "<input type='submit' class='editbutton' name='"