CC-4199: Webstream: Please show warning when the URL is too long
-upped max webstream length to 512 -show warning if > 512 characters
This commit is contained in:
parent
f698b70341
commit
4b09d5eff2
3 changed files with 5 additions and 2 deletions
|
@ -168,6 +168,9 @@ class Application_Model_Webstream implements Application_Model_LibraryEditable
|
|||
if ($result == 0) {
|
||||
$valid['url'][0] = false;
|
||||
$valid['url'][1] = 'URL should be of form "http://domain"';
|
||||
} elseif (strlen($url) > 512) {
|
||||
$valid['url'][0] = false;
|
||||
$valid['url'][1] = 'URL should be 512 characters or less';
|
||||
} else {
|
||||
|
||||
try {
|
||||
|
|
|
@ -420,7 +420,7 @@
|
|||
<column name="name" phpName="DbName" type="VARCHAR" size="255" required="true" />
|
||||
<!-- TODO, remove hardlimit on this column length? -->
|
||||
<column name="description" phpName="DbDescription" type="VARCHAR" size="255" required="true" />
|
||||
<column name="url" phpName="DbUrl" type="VARCHAR" size="255" required="true" />
|
||||
<column name="url" phpName="DbUrl" type="VARCHAR" size="512" required="true" />
|
||||
<column name="length" phpName="DbLength" type="VARCHAR" sqlType="interval" required="true" defaultValue="00:00:00"/>
|
||||
<column name="creator_id" phpName="DbCreatorId" type="INTEGER" required="true" />
|
||||
<column name="mtime" phpName="DbMtime" type="TIMESTAMP" size="6" required="true" />
|
||||
|
|
|
@ -95,7 +95,7 @@ CREATE TABLE cc_webstream (
|
|||
id integer DEFAULT nextval('cc_webstream_id_seq'::regclass) NOT NULL,
|
||||
name character varying(255) NOT NULL,
|
||||
description character varying(255) NOT NULL,
|
||||
url character varying(255) NOT NULL,
|
||||
url character varying(512) NOT NULL,
|
||||
length interval DEFAULT '00:00:00'::interval NOT NULL,
|
||||
creator_id integer NOT NULL,
|
||||
mtime timestamp(6) without time zone NOT NULL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue