[Pidgin] #3848: purple_markup_unescape_entity doesn't escape hexadecimal references

Pidgin trac at pidgin.im
Sun Nov 4 18:25:11 EST 2007


#3848: purple_markup_unescape_entity doesn't escape hexadecimal references
----------------------------+-----------------------------------------------
  Reporter:  BigBrownChunx  |       Owner:       
      Type:  patch          |      Status:  new  
  Priority:  minor          |   Milestone:       
 Component:  libpurple      |     Version:  2.2.2
Resolution:                 |    Keywords:       
   Pending:  0              |  
----------------------------+-----------------------------------------------
Comment (by BigBrownChunx):

 Oh, I just noticed the log10 bit.  Is that necessairy to have that in
 there since the sscanf already has a ; in it?  Would it be better to have
 {{{
 else if(*(text+1) == '#' && ((sscanf(text, "&#%u;", &pound) == 1) ||
                         (sscanf(text, "&#x%x;", &pound) == 1)) &&
                         pound != 0) {
 }}}

-- 
Ticket URL: <http://developer.pidgin.im/ticket/3848#comment:1>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list