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

jjeff’s picture

Just committed this fix to the dev version.

jjeff’s picture

Status: Active » Fixed
jjeff’s picture

Just rolled 1.0-rc2 which contains this fix.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.