<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Item Description Field Length FA2.4.8]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8700</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8700&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Item Description Field Length FA2.4.8.]]></description>
		<lastBuildDate>Mon, 02 Mar 2020 09:15:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37085#p37085</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (sledge)]]></author>
			<pubDate>Mon, 02 Mar 2020 09:15:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37085#p37085</guid>
		</item>
		<item>
			<title><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37079#p37079</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 01 Mar 2020 09:51:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37079#p37079</guid>
		</item>
		<item>
			<title><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37072#p37072</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (sledge)]]></author>
			<pubDate>Fri, 28 Feb 2020 05:26:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37072#p37072</guid>
		</item>
		<item>
			<title><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37068#p37068</link>
			<description><![CDATA[<p>This change can be reverted and SQL injection can be addressed by removing semicolon from the POST field&#039;s value.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 27 Feb 2020 17:28:49 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37068#p37068</guid>
		</item>
		<item>
			<title><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37065#p37065</link>
			<description><![CDATA[<p>Sorry Joe just answered..</p>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Thu, 27 Feb 2020 17:03:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37065#p37065</guid>
		</item>
		<item>
			<title><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37064#p37064</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Thu, 27 Feb 2020 17:02:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37064#p37064</guid>
		</item>
		<item>
			<title><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37063#p37063</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Thu, 27 Feb 2020 16:58:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37063#p37063</guid>
		</item>
		<item>
			<title><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37058#p37058</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 27 Feb 2020 16:11:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37058#p37058</guid>
		</item>
		<item>
			<title><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37051#p37051</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Thu, 27 Feb 2020 15:43:38 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37051#p37051</guid>
		</item>
		<item>
			<title><![CDATA[Re: Item Description Field Length FA2.4.8]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37050#p37050</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (sledge)]]></author>
			<pubDate>Thu, 27 Feb 2020 11:59:37 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37050#p37050</guid>
		</item>
		<item>
			<title><![CDATA[Item Description Field Length FA2.4.8]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37049#p37049</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Thu, 27 Feb 2020 10:05:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37049#p37049</guid>
		</item>
	</channel>
</rss>
