# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: moodle/lib/filelib.php
--- moodle/lib/filelib.php Base (1.50.2.25)
+++ moodle/lib/filelib.php Locally Modified (Based On 1.50.2.25)
@@ -38,7 +38,11 @@
 
     if ($CFG->slasharguments) {
         $parts = explode('/', $path);
-        $parts = array_map('rawurlencode', $parts);
+        foreach ($parts as $key => $part) {
+            $subparts = explode('#', $part);
+            $subparts = array_map('rawurlencode', $subparts);
+            $parts[$key] = implode('#', $subparts);
+        }
         $path  = implode('/', $parts);
         $ffurl = $url.'/'.$path;
         $separator = '?';

