Ticket #5756: 5756.3.patch

File 5756.3.patch, 435 bytes (added by David Avsajanishvili, 12 years ago)

A very little improvement of 5756.2.patch: changed line 182 in loader_tags.py (see #8088)

  • django/template/loader_tags.py

     
    181181    path = bits[1]
    182     if path[0] in ('"', "'") and path[-1] == path[0]:
     182    if path[0] in ('"', "'") and path[-1] == path[0] and not path[0] in path[1:-1]:
    183183        return ConstantIncludeNode(path[1:-1])
Back to Top