Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1263
bug98
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 6:50 PM
2014-11-21 18:50:48 (UTC+0)
Size
597 B
Referenced Files
None
Subscribers
None
bug98
View Options
Index: includes/Title.php
===================================================================
--- includes/Title.php (revision 17246)
+++ includes/Title.php (working copy)
@@ -1551,6 +1551,16 @@
return false;
}
+ /**
+ * Pages whose titles start with / can confuse webservers
+ * and proxies. They can be unreachable with the pretty
+ * URLs. Forbid them explicitly.
+ */
+ if ( strpos( $r, '/') === 0 )
+ {
+ return false;
+ }
+
# We shouldn't need to query the DB for the size.
#$maxSize = $dbr->textFieldSize( 'page', 'page_title' );
if ( strlen( $r ) > 255 ) {
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1128
Default Alt Text
bug98 (597 B)
Attached To
Mode
T2098: Pages beginning with slash sometimes allowed
Attached
Detach File
Event Timeline
Log In to Comment