• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

a bug with sqlserver

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sqlserver2005
JForum-2.1.6

JForum-2.1.6-src\WEB-INF\config\database\sqlserver\sqlserver_data_dump.sql

at line 82 to line 113
like this------------
INSERT INTO jforum_smilies (code, url, disk_name) VALUES (':|','','1cfd6e2a9a2c0cf8e74b49b35e2e46c7.gif');

the word alt=\":|\" will arouse error "out of memory"

look

net.jforum.view.forum.common.PostCommon. processSmilies(StringBuffer text, List smilies)

at line 214,

while (pos > -1 && s!=null) {
text.replace(pos, pos + s.getCode().length(), s.getUrl()); pos = text.indexOf(s.getCode());
}

the method "replace" will change ":|" to ""

but,another ":|" appeared,so dead loop appeared





[originally posted on jforum.net by unrain]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hahaha.. In fact..

Thanks for reporting it. I'm fixing right now.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
She's brilliant. She can see what can be and is not limited to what is. And she knows this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic