# This patch file was generated by NetBeans IDE
# Following Index: paths are relative to: /opt/apostrophe/trunk/plugins/apostrophePlugin/lib/toolkit
# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: aMediaTools.php
--- aMediaTools.php Base (BASE)
+++ aMediaTools.php Locally Modified (Based On LOCAL)
@@ -172,7 +172,8 @@
   {
     if ($actions->hasRequestParameter('slug'))
     {
-      $slug = preg_replace("/[^\w\-]/", "", $actions->getRequestParameter('slug'));
+      $slug = aTools::slugify($actions->getRequestParameter('slug'));
+			
       $item = Doctrine_Query::create()->
         from('aMediaItem')->
         where('slug = ?', array($slug))->

