Skip to content

Commit aec85f2

Browse files
committed
Merge pull request #1980 from mgreter/bugfix/issue_1931
Avoid endless loop in parse_url_function_argument
2 parents cd72e39 + f982577 commit aec85f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/parser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,10 +1806,11 @@ namespace Sass {
18061806
uri = lexed.to_string();
18071807
}
18081808

1809+
lex < css_whitespace >();
18091810
if (peek< exactly< hash_lbrace > >()) {
18101811
const char* pp = position;
18111812
// TODO: error checking for unclosed interpolants
1812-
while (peek< exactly< hash_lbrace > >(pp)) {
1813+
while (pp && peek< exactly< hash_lbrace > >(pp)) {
18131814
pp = sequence< interpolant, real_uri_value >(pp);
18141815
}
18151816
position = pp;

0 commit comments

Comments
 (0)