Closed (fixed)
Project:
Bad Behavior
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Jun 2011 at 16:33 UTC
Updated:
14 Jul 2011 at 15:54 UTC
When I copy and paste my quicklink into the 'Project Honey Pot QuickLink' field, I get the error 'You must enter a valid Project Honey Pot QuickLink URL, or leave the field blank.' when I attempt to save. What type of validation is attempted against the quicklink URL? I'd prefer not to post it here as that defeats the purpose of the quicklink URL, however it seems the validation code is not working correctly. (I am including the http:// at the beginning.)
Comments
Comment #1
gregarios commentedPlease post the link in this thread if you would, so I can modify the validation to fix this. The quicklink is not a private thing anyway, right? :-) (post it in this discussion leaving out the "http:" so it doesn't form an actual link in the thread) Change a few characters if you like — I just need the format so I can adjust the validation string.
Alternately, you can message it to me at: http://drupal.org/user/426296/contact
Comment #2
gregarios commentedI believe I've come up with a better code than using a custom Regex anyway — now using Drupal's built-in valid_url() for simplicity. This allows for custom Project Honey Pot Quicklinks as well.
6.x-2.x-dev release updated as of today. This will be in the full 6.x-2.114 release as well when the next version of BB scripts comes out.
Comment #4
gilf commentedSame issue, link is http://www.jensoft.co.uk/honey_pot/aft.php?t=8, which works in a similar WordPress module
Comment #5
gilf commentedComment #6
gregarios commentedThe -dev release has this fixed.
Comment #7
gregarios commented