Closed (fixed)
Project:
ShURLy
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2010 at 18:34 UTC
Updated:
21 Sep 2010 at 21:20 UTC
I made a small patch to grow the to be shortened URL from default 128 to 255 characters to be more useful for me; maybe for others too?
diff -up /Users/holgi/Desktop/shurly/shurly.module /Users/holgi/Desktop/shurly_new/shurly.module
--- /Users/holgi/Desktop/shurly/shurly.module 2010-08-24 16:25:47.000000000 +0200
+++ /Users/holgi/Desktop/shurly_new/shurly.module 2010-08-24 20:28:00.000000000 +0200
@@ -178,6 +178,7 @@ function shurly_create_form($form_state)
$form['long_url'] = array(
'#title' => t('Enter a long URL to make short'),
'#type' => 'textfield',
+ '#maxlength' => 255,
'#default_value' => isset($form_state['storage']['shurly']['long_url']) ? $form_state['storage']['shurly']['long_url'] : ($_GET['url'] ? $_GET['url'] : 'http://'),
);
Comments
Comment #1
jjeff commentedJust committed this fix to the dev version.
Comment #2
jjeff commentedComment #3
jjeff commentedJust rolled 1.0-rc2 which contains this fix.