# 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/weblib.php
--- moodle/lib/weblib.php Base (1.970.2.161)
+++ moodle/lib/weblib.php Locally Modified (Based On 1.970.2.161)
@@ -2324,6 +2324,7 @@
         $unicoderegexp = @preg_match('/\pL/u', 'a'); // This will fail silenty, returning false,
     }
 
+    $unicoderegexp = false;//force non use of unicode modifiers. MDL-21296
     if ($unicoderegexp) { //We can use unicode modifiers
         $text = preg_replace('#(?<!=["\'])(((http(s?))://)(((([\pLl0-9]([\pLl0-9]|-)*[\pLl0-9]|[\pLl0-9])\.)+([\pLl]([\pLl0-9]|-)*[\pLl0-9]|[\pLl]))|(([0-9]{1,3}\.){3}[0-9]{1,3}))(:[\pL0-9]*)?(/([\pLl0-9\.!$&\'\(\)*+,;=_~:@-]|%[a-fA-F0-9]{2})*)*(\?[\pLl0-9\.!$&\'\(\)*+,;=_~:@/?-]*)?(\#[\pLl0-9\.!$&\'\(\)*+,;=_~:@/?-]*)?)(?<![,\.;])#iu',
                              '<a href="\\1" target="_blank">\\1</a>', $text);
