rem: if (!param.topic.isURL()) 
add:  if (String.URLPATTERN.test(param.topic)) 
context: function evalNewStory(param, creator) {   var s = new Story(creator, param.http_remotehost);   // collect content   var content = extractContent(param);   // if all story parts are null, return with error-message   if (!content.exists)      throw new Exception("textMissing");   s.setContent(content.value);   // let's keep the title property   s.title = content.value.title;   // check if the create date is set in the param object   if (param.createtime) {      try {         s.createtime = param.createtime.toDate("yyyy-MM-dd HH:mm", this._parent.getTimeZone());      } catch (error) {         throw new Exception("timestampParse", param.createtime);      }   }   s.editableby = !isNaN(parseInt(param.editableby, 10)) ?                  parseInt(param.editableby, 10) : EDITABLEBY_ADMINS;   s.discussions = param.discussions ? 1 : 0;   // create day of story with respect to site-timezone   s.day = formatTimestamp(s.createtime, "yyyyMMdd");   // check name of topic (if specified)   if (param.topic) {      if (!param.topic.isURL())         throw new Exception("topicNoSpecialChars");      if (this._parent.topics[param.topic] || this._parent.topics[param.topic + "_action"])         throw new Exception("topicReservedWord");      s.topic = param.topic;   } else if (param.addToTopic)      s.topic = param.addToTopic;   // check the online-status of the story   if (param.publish)      s.online = param.addToFront ? 2 : 1;   else      s.online = 0;   // store the story   if (!this.add(s))      throw new Exception("storyCreate");   // send e-mail notification   if (s.site.isNotificationEnabled())       s.site.sendNotification("create", s);   var result = new Message("storyCreate", null, s);   result.id = s._id;   if (s.online) {      s.site.lastupdate = s.modifytime;      result.url = s.href();   } else      result.url = this.href();   return result;}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/0d993df71cb7158db34c276f217132da94afa08d/objectFunctions.js/buggy/code/StoryMgr/objectFunctions.js