Changeset 332


Ignore:
Timestamp:
Sep 7, 2006, 1:59:59 PM (19 years ago)
Author:
pr
Message:

Fixes bug 718/836

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1-0/src/helpers/stringh.c

    r329 r332  
    11471147 *@@changed V0.9.12 (2001-05-22) [umoeller]: fixed space bug, thanks Yuri Dario
    11481148 *@@changed WarpIN V1.0.11 (2006-08-29) [pr]: handle attrib names in quoted strings @@fixes 718
     1149 *@@changed WarpIN V1.0.12 (2006-09-07) [pr]: fix attrib handling again @@fixes 718 @@fixes 836
    11491150 */
    11501151
     
    11611162    memcpy(pszSearchIn2, pszSearchIn, ulLength + 1);
    11621163
    1163     for (p = pszSearchIn2; *p == ' ' || *p == '\n' || *p == '\r' || *p == '\t'; p++);
     1164    // V1.0.12 (2006-09-07) [pr]: filter leading " and ' left over from the previous pass
     1165    for (p = pszSearchIn2;   *p == '\'' || *p == '"'  || *p == ' '
     1166                          || *p == '\n' || *p == '\r' || *p == '\t'; p++);
    11641167    for (pszStart = p; *p; p++)
    11651168    {
    11661169        if (fInQuote)
    11671170        {
    1168             if (*p == '"')
     1171            // V1.0.12 (2006-09-07) [pr]: allow end of line to terminate a (broken) quote
     1172            if (*p == '"' || *p == '\n' || *p == '\r')
    11691173                fInQuote = FALSE;
    11701174        }
  • trunk/src/helpers/stringh.c

    r329 r332  
    13211321 *@@changed V0.9.12 (2001-05-22) [umoeller]: fixed space bug, thanks Yuri Dario
    13221322 *@@changed WarpIN V1.0.11 (2006-08-29) [pr]: handle attrib names in quoted strings @@fixes 718
     1323 *@@changed WarpIN V1.0.12 (2006-09-07) [pr]: fix attrib handling again @@fixes 718 @@fixes 836
    13231324 */
    13241325
     
    13351336    memcpy(pszSearchIn2, pszSearchIn, ulLength + 1);
    13361337
    1337     for (p = pszSearchIn2; *p == ' ' || *p == '\n' || *p == '\r' || *p == '\t'; p++);
     1338    // V1.0.12 (2006-09-07) [pr]: filter leading " and ' left over from the previous pass
     1339    for (p = pszSearchIn2;   *p == '\'' || *p == '"'  || *p == ' '
     1340                          || *p == '\n' || *p == '\r' || *p == '\t'; p++);
    13381341    for (pszStart = p; *p; p++)
    13391342    {
    13401343        if (fInQuote)
    13411344        {
    1342             if (*p == '"')
     1345            // V1.0.12 (2006-09-07) [pr]: allow end of line to terminate a (broken) quote
     1346            if (*p == '"' || *p == '\n' || *p == '\r')
    13431347                fInQuote = FALSE;
    13441348        }
Note: See TracChangeset for help on using the changeset viewer.