Oops I broke the news bot

Announcements about the forum or services itself
Locked
User avatar
Red Squirrel
Posts: 29198
Joined: Wed Dec 18, 2002 12:14 am
Location: Northern Ontario
Contact:

Oops I broke the news bot

Post by Red Squirrel »

What did I do now? :lol: Let's just say that replacing a % sign with a string that HAS a % sign in it, is not a very good idea. At least not the way my function works. It goes in an endless loop. The output looks sort of like this in debug mode:

Code: Select all

borg:/data/samba/shared/ryan/applications/news_parser# ./poster_bot.app 


------Preparing to process DB entry #1

Retrieving data from raw buffer...Done
Connecting...Done
Formatting parts for http transfer preparation...
[code]

Then it sits there in a loop replacing % with %25 and %25 with %2525 and so on.  I'm working on it now, hopefully this fixes it, and news posting will resume.  There's also another bug in the parsing phase where there's missing spaces, this is due to the stupid way some emails are formated.  (words get cut off by a 
) so not sure if it will be fixable or not but I'll try to fix that while I'm at it. 

 [img]/attachments_legacy/it/post-5-1131489186_Untitledcopyjpg.jpg[/img] 


[color=#888888][size=85]Archived topic from Iceteks,  old topic ID:3926, old post ID:32160[/size][/color]
Honk if you love Jesus, text if you want to meet Him!
Locked