<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">Hi Everyone,</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br class="">

I am looking into using cgit for Drupal.org's repos, and wondering if we could remove code like this:</div><div style="font-family:arial,sans-serif;font-size:13px"><a href="http://git.zx2c4.com/cgit/tree/shared.c#n79" target="_blank">http://git.zx2c4.com/cgit/tree/shared.c#n79</a><br>

</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">We have almost 10,000 repos and are worried about the load from loops, and building the index it loops over. All of the repos are under a directory (in 2 different sub directories), so I was hoping we could just validate the directory path (making sure someone is not trying to do a ../../,etc) and allow it?</div>

<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Could that be done?  Please let me know your thoughts.</div><div style="font-family:arial,sans-serif;font-size:13px">

<br></div><div style="font-family:arial,sans-serif;font-size:13px">Thanks</div><div style="font-family:arial,sans-serif;font-size:13px">Michael</div></div>