[07:21:03] привет всем [09:24:11] hello, I have disabled the forward slash in $wgLegalTitleChars, however, I am still able to create articles with the forward slash character in mediawiki, what is wrong? [09:28:19] cloudcell: having a quick look, hold on [09:33:16] cloudcell: i found something that could be the cause of your problem, though I don't exactly understand it. [09:33:38] what is it duesen ? [09:33:38] The default is $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+"; [09:34:07] in order to disallow "/", you have to remove "\\/" from that string. If you only remove the "/", strange things happen. [09:34:45] (you are technically making the null-byte \0 a legal character... and this causes / to be legal as well somehow? not sure) [09:35:23] so we found a bug ? :) [09:35:24] So, for me this works: $wgLegalTitleChars = " %!\"$&'()*,\\-.0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+"; [09:36:59] in any case, thank you very much duesen !!! [09:37:22] cloudcell: prohibiting "/" leads to strange behavior for me though. I guess it's not really supported. MediaWiki uses "/" for the subpage mechanism. Subpages are not enabled per default in the main namespace, but in most other namespaces. And in some namespaces, like the "MediaWiki" or the "User" namespace, they are used for special things. [09:37:44] After disallowing "/", I can't view user pages anymore at all. [09:38:27] cloudcell: the solution would be to force "/" to be allowed in namespaces that have subpages allowed. That way, you could prohibit it in other namespaces.... [09:38:29] but I want to disallow pages that users create with the character "/" in the middle of the page name [09:41:29] cloudcell: that seems like a reasonable thing to do for the main namespace. It's not possible for all namespaces. Doing it just for the main namespace however isn't trivial it seems. [09:43:37] cloudcell: the best I can think of offhand is using https://www.mediawiki.org/wiki/Manual:Hooks/EditFilterMergedContent [09:44:15] That hook's interface is awkward, you'd have to get the title from $context, but it should be possible to prevent the creation of pages based on their title this way [09:44:51] Oh wait, there may be an easier way [09:46:46] cloudcell: there is an extension that allows you to blacklist titles: https://www.mediawiki.org/wiki/Extension:TitleBlacklist [09:46:49] just use that. [09:47:27] oh, thanks duesen , will definitely try that [09:48:44] cheers! [09:49:19] cloudcell: is there a particular reason you want to ban "/" from titles? is there a spam issue and they are using or something? [09:50:08] p858snake: I am exporting the contents of the wiki into an external file and that character causes errors [10:14:10] cloudcell: you could apply url encoding to all titles (and replace "%" with "!"). [10:14:41] I do not understand [10:15:01] I am currently trying to figure out how to use the extension TitleBlacklist [10:15:29] to disable a single character "/" [11:15:48] Hello can anyone help me. [11:16:42] I want to know who can change site name of Ks Wikipedia [11:17:25] The community would need to show consenus for the change, then it can be filed on the Wikimedia Phabricator [11:39:21] https://meta.wikimedia.org/wiki/Requesting_wiki_configuration_changes [16:27:13] uuuhh, maintenance/clearInterwikiCache.php only works on WMF sites or sites with $wgLocalDatabases defined :( [18:13:02] I am using TitleBlackList extension with no success. I have defined this ".*\/.*" as a regular expression in the MediaWiki:Titleblacklist" but I can still create a page with the forward slash in it, any ideas how to fix this? [18:13:57] and here is a bit from my LocalSettings.php [18:14:06] https://www.irccloud.com/pastebin/mAa5rPYE/ [18:15:37] cloudcell: if you're an administrator on that wiki, you're allowed to bypass the blacklist, i would guess that's the reason [18:15:54] wow, thanks MatmaRex [18:16:20] is there a way to disable this behavior of the extension, to include admins as well? [18:16:24] there might be a way to configure this, i don't remember off the top o my head [18:17:33] cloudcell: $wgGroupPermissions['sysop']['tboverride'] = false; [18:17:37] https://www.mediawiki.org/wiki/Extension:TitleBlacklist#Usage the "noedit" option might work? i actually don't understand this documentation [18:18:13] thank you very much zabe and MatmaRex ! [18:19:15] oh, "noedit" is unrelated, never mind that [18:19:36] (it means you also can't edit the page if it exists, in addition to not being able to create the page if it doesn't exist) [18:22:24] "$wgGroupPermissions['sysop']['tboverride'] = false;" worked!