MDL-48304 moodle_url: compare now considers anchor
[moodle.git] / lib / weblib.php
index ee5b31a..dd91f8d 100644 (file)
@@ -646,6 +646,10 @@ class moodle_url {
             }
         }
 
+        if ($url->anchor !== $this->anchor) {
+            return false;
+        }
+
         return true;
     }