title: How to sanitize a $_GET on Typo3 extension?
body: <p>I have an extension that access a file directory. I use an ajax function to send the path that needs to be access to the controller and in the controller I use a $_GET cause I haven't figure it out how to make it work otherwise.</p>
  
  <pre><code>$image_file_path = $_GET["url_region"];
  $d = dir($image_file_path) or die("File not found!");
  </code></pre>
  
  <p>But of course when you request for something else like ../../.. you can access all other directories.</p>
  
  <p>Could you suggest me a way to sanitize this? Please!</p>