I'm trying to use a simple regex in the TPL to enforce where a generated output file can be saved in the work area directory structure. For example on the following type of path I'm trying to prevent output files from being saved higher up than the /content/ directory. Any sub directory inside of /content/ should be fine./default/main/hnfs/va/WORKAREA/work/content/company/newsMy entry in the templating .cfg is attached.Where am I going wrong?Many thanks!-Ninerfan
<directory dir-regex="/content/..*" />
Hi thanks for the reply.I tried removing the extra dot as you suggested but I'm still getting the same problem. See the attached image error1.gif. It shows the alert box I see when I try to generate the page. The error2.gif only shows up if I try to save a output file in the root of the work area with your regex or in the root or /content folder using my regex (two dots).It seems like the original regex was exactly what we wanted in other words with the two dots, files could NOT be saved directly in the work area root or here in the content folder. Which is the way we want it too work./default/main/hnfs/va/WORKAREA/work/content/Files COULD be saved in any sub folder of content/default/main/hnfs/va/WORKAREA/work/content/company/default/main/hnfs/va/WORKAREA/work/content/company/news/default/main/hnfs/va/WORKAREA/work/content/company/etcBut regardless of if we use the one dot or two dot regex no matter where we try to save the generated .jsp file we get the error1.gif message.It feels like the dir-regex line is getting picked up correct when we are navigating to select our save path but NOT when we actually try to save the generated page there. Like it's passing one test but failing another.Any guesses?