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:
Martin Konecny 2012-09-04 16:15:07 -04:00
parent f698b70341
commit 4b09d5eff2
3 changed files with 5 additions and 2 deletions

View file

@ -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 {