diff --git a/extension.json b/extension.json index 856ede8..c8f7744 100644 --- a/extension.json +++ b/extension.json @@ -3,7 +3,7 @@ "author": "hyperzlib", "url": "https://github.com/Isekai-Project/mediawiki-extension-LatinizeUrl", "descriptionmsg": "latinizeurl_desc", - "version": "1.0.0", + "version": "1.0.1", "license-name": "MIT", "type": "other", "ExtensionMessagesFiles": { diff --git a/includes/Utils.php b/includes/Utils.php index 62a5101..07ca53e 100644 --- a/includes/Utils.php +++ b/includes/Utils.php @@ -303,7 +303,7 @@ class Utils { } public static function encodeUriComponent($str){ - return implode("/", array_map("urlencode", explode("/", $str))); + return str_replace('+', '_', implode("/", array_map("urlencode", explode("/", $str)))); } public static function getVersion(){