修复了页面标题带空格时,指向页面的站内链接不正确的问题

master
落雨楓 5 years ago
parent 58becfafa0
commit 38f295abf1

@ -3,7 +3,7 @@
"author": "hyperzlib", "author": "hyperzlib",
"url": "https://github.com/Isekai-Project/mediawiki-extension-LatinizeUrl", "url": "https://github.com/Isekai-Project/mediawiki-extension-LatinizeUrl",
"descriptionmsg": "latinizeurl_desc", "descriptionmsg": "latinizeurl_desc",
"version": "1.0.0", "version": "1.0.1",
"license-name": "MIT", "license-name": "MIT",
"type": "other", "type": "other",
"ExtensionMessagesFiles": { "ExtensionMessagesFiles": {

@ -303,7 +303,7 @@ class Utils {
} }
public static function encodeUriComponent($str){ 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(){ public static function getVersion(){

Loading…
Cancel
Save