changeset 135:a82425fe3f23

- Fixed a bug in Html_parse_entity.
author jcid
date Fri, 07 Mar 2008 16:15:41 +0100
parents c6bded6a7a5c
children bb50648e3f02
files ChangeLog src/html.cc
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Mar 06 15:33:26 2008 +0100
+++ b/ChangeLog	Fri Mar 07 16:15:41 2008 +0100
@@ -82,6 +82,7 @@
  - Added "standard_widget_colors" preference. It allows a more stylish look.
  - Fixed the return value of Cache_parse_multiple_field.
  - Added the multipart/form-data encoding method to form submission.
+ - Fixed a bug in Html_parse_entity.
    Patches: place
 +- Fixed a problem with locally-installed dpis.
  - Added code for optional image loading (nice interface) very advanced!
--- a/src/html.cc	Thu Mar 06 15:33:26 2008 +0100
+++ b/src/html.cc	Fri Mar 07 16:15:41 2008 +0100
@@ -1350,7 +1350,7 @@
 
    } else if (isalpha(*s)) {
       /* character entity reference */
-      while (isalnum(*++s) || strchr(":_.-", *s));
+      while (*++s && (isalnum(*s) || strchr(":_.-", *s)));
       c = *s;
       *s = 0;