_sm_helper_truncate() could be fell into infinite while loop so that page execution time out happend.

guysung - October 12, 2009 - 15:13
Project:Slot Machine
Version:6.x-1.0-beta4
Component:Code
Category:bug report
Priority:normal
Assigned:mcarbone
Status:active
Description

Hi, I would say thanks so much for this great module first.
The minor issue I found is that _sm_helper_truncate() could get into infinite while loop.
I know the page execution time out due to the infinite while loop may be barely happened in real world because there should be a space in the body at least. But I've experienced this infinite loop with my dummy body text which doesn't have any space within first 100 characters.
Cheers.

#1

mcarbone - October 13, 2009 - 17:29
Assigned to:Anonymous» mcarbone

Yeah, that function has some errors in it. Assigning to me.

 
 

Drupal is a registered trademark of Dries Buytaert.