bot_karma is saving blank terms

Morbus Iff - June 26, 2008 - 12:09
Project:Bot
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

INSERT INTO `bot_karma` VALUES ('ice cream',1),('morbus',15),('litwol',2),('druplicon',5),('beeradb_',1),('walkah',1),('6',-1),('',-1),('',-2),('',-2),('',-2),('5',-7),('8',-1),('my xpath knowledge is not the best',-1);

Saving blank terms. Gotta trim() and return if ''.

#1

Morbus Iff - June 26, 2008 - 12:10

Probably should set a minlength of 2 characters too (to prevent 5++ sorta things).

#2

Morbus Iff - June 27, 2008 - 15:46

Done. Less than 3 and more than 15 are ignored.

#3

Morbus Iff - June 27, 2008 - 15:47
Status:active» fixed

#4

Rob Loach - June 27, 2008 - 18:19

Regex++

#5

Anonymous (not verified) - July 11, 2008 - 18:23
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.