Changeset a15198


Ignore:
Timestamp:
2007-11-20 22:01:00 (6 years ago)
Author:
Poul-Henning Kamp <phk@…>
Branches:
2.0, 2.1, tags/varnish-2.0, tags/varnish-2.0-beta1, tags/varnish-2.0-beta1@3141, tags/varnish-2.0-beta2, tags/varnish-2.0-beta2@3221, tags/varnish-2.0-rc1, tags/varnish-2.0-rc1@3266, tags/varnish-2.0-tp1, tags/varnish-2.0-tp1@2734, tags/varnish-2.0-tp2, tags/varnish-2.0-tp2@2803, tags/varnish-2.0.1, tags/varnish-2.0.2, tags/varnish-2.0.3, tags/varnish-2.0.4, tags/varnish-2.0.5, tags/varnish-2.0.6, tags/varnish-2.1.0, tags/varnish-2.1.1, tags/varnish-2.1.2, tags/varnish-2.1.3, tags/varnish-2.1.4
Children:
d6da70
Parents:
d0b656
git-author:
Poul-Henning Kamp <phk@…> (2007-11-20 22:01:00)
git-committer:
Poul-Henning Kamp <phk@…> (2007-11-20 22:01:00)
Message:

Warn about XML/ESI language elements that are not properly closed.

git-svn-id:  http://www.varnish-cache.org/svn/trunk@2279 d4fa192b-c00b-0410-8231-f00ffab90ce4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/varnishd/cache_vrt_esi.c

    rd0b656 ra15198  
    626626                         * XXX: element dangling ? 
    627627                         */ 
    628                         INCOMPL(); 
     628                        esi_error(ew, p, ew->t.e -p, 
     629                            "XML 1.0 incomplete language element"); 
     630                        ew->dst.b = p; 
     631                        ew->dst.e = ew->t.e; 
     632                        esi_addbit(ew); 
     633                        break; 
    629634                } 
    630635 
     
    661666        } 
    662667 
     668        if (ew->remflg) 
     669                esi_error(ew, NULL, 0, 
     670                    "ESI 1.0 unterminated <esi:remove> element"); 
     671        if (ew->incmt) 
     672                esi_error(ew, NULL, 0, 
     673                    "ESI 1.0 unterminated <!--esi comment"); 
     674 
    663675        if (!ew->is_esi) { 
    664676                ESI_Destroy(sp->obj); 
Note: See TracChangeset for help on using the changeset viewer.