Commit 72ce8582 authored by Guido van Rossum's avatar Guido van Rossum

Fix by Chris Petrilli (to his own code) to limit the number of

iterations looking for expansions to 10.
parent 561df244
......@@ -209,7 +209,9 @@ class ConfigParser:
return rawval
value = rawval # Make it a pretty variable name
while 1: # Loop through this until it's done
depth = 0
while depth < 10: # Loop through this until it's done
depth = depth + 1
if not string.find(value, "%("):
try:
value = value % d
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment