Thread:Extension talk:WYSIWYG/Cancelling an edit causes a 404 page not found error due to the index dot php being removed from the URL/reply (7)

There are two buggy lines in the CKeditorLinker::removeHook function which prevent the extension's parse function from removing its own hooks. This causes the hooks to continue to run and modify links when the rest of the page is rendered, in addition to what's in the WYSIWYG editor. A couple of simple edits in WYSIWYG/CKeditorLinker.php seem to fix the problem. For me, they're lines 48 and 49, but I'll include the whole function here (starting on line 44):

Change this: private static function removeHook($hookName, $function) { global $wgHooks; $hook = $wgHooks[$hookName]; $i = array_search($function, $hook); if ($i) { $wgHooks[$hookName] = array_splice($hook, $i, 1); }     }

To this: private static function removeHook($hookName, $function) { global $wgHooks; $hook = $wgHooks[$hookName]; $i = array_search($function, $hook); if ($i !== FALSE) { array_splice($wgHooks[$hookName], $i, 1); }     }