<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Item Description Field Length FA2.4.8]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8700&amp;type=atom" />
	<updated>2020-03-02T09:15:12Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8700</id>
		<entry>
			<title type="html"><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37085#p37085" />
			<content type="html"><![CDATA[<p>Thank you for the confirmation apmuthu, just as I hoped for. That leaves me happy with your modification that I&#039;ve applied.</p>]]></content>
			<author>
				<name><![CDATA[sledge]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=13020</uri>
			</author>
			<updated>2020-03-02T09:15:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37085#p37085</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37079#p37079" />
			<content type="html"><![CDATA[<p>If the form can be seen only from the logged in state, then non logged in users should not be able to get in even by cURL.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-03-01T09:51:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37079#p37079</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37072#p37072" />
			<content type="html"><![CDATA[<p>Thanks Joe, Apmuthu and Rafat.</p><p>Is it safe to state this possible SQL injection can only be executed by logged in users of my FA installation and not by unauthorised visitors crawling by?</p>]]></content>
			<author>
				<name><![CDATA[sledge]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=13020</uri>
			</author>
			<updated>2020-02-28T05:26:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37072#p37072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37068#p37068" />
			<content type="html"><![CDATA[<p>This change can be reverted and SQL injection can be addressed by removing semicolon from the POST field&#039;s value.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-02-27T17:28:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37068#p37068</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37065#p37065" />
			<content type="html"><![CDATA[<p>Sorry Joe just answered..</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2020-02-27T17:03:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37065#p37065</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37064#p37064" />
			<content type="html"><![CDATA[<p>Yes apmuthu</p><p>Reversing the same line to what was in 2.4.7 does resolve the issue. But why it was changed as you asked?<br /></p><div class="codebox"><pre><code>echo sales_items_list($name, $selected_id, $all_option, $submit_on_change,
        &#039;&#039;, array(&#039;cells&#039;=&gt;true));</code></pre></div>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2020-02-27T17:02:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37064#p37064</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37063#p37063" />
			<content type="html"><![CDATA[<p>In 2.4.7 we had to do something against sql injection and therefore we had to reduce the field to only enter 50 characters.<br />The length is defined as varchar(50) and after implementing the STRICT_ALl_TABLES no longer accepts overwriting of the 50 length.</p><p>The field will be changed to 255 chars in 2.5.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2020-02-27T16:58:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37063#p37063</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37058#p37058" />
			<content type="html"><![CDATA[<p>This is the only place where VARCHAR 255 is available in the <strong>sql/en_US-new.sql</strong> (<em>msg</em> field) Chart of Accounts - unless you used a different one:<br /></p><div class="codebox"><pre><code>CREATE TABLE `0_sql_trail` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `sql` text NOT NULL,
  `result` tinyint(1) NOT NULL,
  `msg` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB ;</code></pre></div><p>Compare lines 946-7 in <strong>includes\ui\ui_lists.inc</strong>:<br /></p><div class="codebox"><pre><code>    echo sales_items_list($name, $selected_id, $all_option, $submit_on_change,
        &#039;&#039;, array(&#039;cells&#039;=&gt;true, &#039;max&#039;=&gt;50)); // maximum is set to 50 and not default 255.</code></pre></div><p>Why was it reduced to 50 characters?</p><p>Commits on 2019-07-04 and 2019-07-18 did this change.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-02-27T16:11:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37058#p37058</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37051#p37051" />
			<content type="html"><![CDATA[<p>A very strange behavior as I was testing:</p><p>1. Existing DB field is preserved..ie an old invoice of 255 char..all char are displayed and can be saved as is.<br />2. Editing is allowed only on deleting&nbsp; the content (some or all) ... Once deleted one cant insert a substitute..even before saving.</p><p>I tested with 2.4.7 and its OK. Only 2.4.8 where I faced the problem.</p><p>Its easily reproducible. Both my 2.4.7 and 2.4.8 are vanilla.</p><p>My test DB is imported&nbsp; 2.4.4 live DB with no changes to the structure of 2.4.7 or .8 default COA empty or demo US db.</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2020-02-27T15:43:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37051#p37051</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37050#p37050" />
			<content type="html"><![CDATA[<p>I&#039;ll stick around to see the answers to this question.</p><p>And with that, is it reversible once updated to v2.4.8 or are the relating fields in the existing DB trimmed to 50 characters?</p>]]></content>
			<author>
				<name><![CDATA[sledge]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=13020</uri>
			</author>
			<updated>2020-02-27T11:59:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37050#p37050</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Item Description Field Length FA2.4.8]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37049#p37049" />
			<content type="html"><![CDATA[<p>Although this has been highlighted in other posts I thought it might need a different attention.<br />The editable Item Description in 2.4.4 is 255 char. The same field in 2.4.8 is reduced to 50 char.<br />Can someone please advise why the change?</p><p>I am unable to enter more than 50 char in either SQ or PO or Invoice or Direct Delivery using 2.4.8.<br />I can enter 255 Char in 2.4.4 without a problem</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2020-02-27T10:05:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37049#p37049</id>
		</entry>
</feed>
