User:לערי ריינהארט/tests/bugzilla/url ( . : , ; + & ? ) encoding

User:Gangleri/tests/bugzilla/url ( . :, ; + & ? ) encoding

User:Gangleri/tests/bugzilla/url ( äöüß + & ? אבגד ) encoding

User:Gangleri/tests/bugzilla/url ( äöüß + & ? ăâîşţ ) encoding

05530 / 05530
&rarr; 05530 / 05530 – "Consistency between character encoding in, and  "

PAGENAMEE, SUBPAGENAMEE and FULLPAGENAMEE

 * PAGENAMEE:
 * SUBPAGENAMEE:
 * FULLPAGENAMEE:


 * Please never use:

generates:&lrm;
 * PAGENAMEE:
 * SUBPAGENAMEE:
 * FULLPAGENAMEE:


 * Please never use:

22:06, 10 April 2006 (UTC)
generates:&lrm;
 * PAGENAMEE:
 * SUBPAGENAMEE:
 * FULLPAGENAMEE:
 * PAGENAMEE: Gangleri/tests/bugzilla/url_%28_._:_%2C_%3B_%2B_%26_%3F_%29_encoding
 * SUBPAGENAMEE: url_(_._:_%2C_%3B_%2B_%26_%3F_)_encoding
 * FULLPAGENAMEE: User:Gangleri/tests/bugzilla/url_(_._:_%2C_%3B_%2B_%26_%3F_)_encoding

references, links
case MAG_PAGENAME: return $this->mTitle->getText; case MAG_PAGENAMEE: return $this->mTitle->getPartialURL; case MAG_FULLPAGENAME: return $this->mTitle->getPrefixedText; case MAG_FULLPAGENAMEE: return $this->mTitle->getPrefixedURL; case MAG_SUBPAGENAME: return $this->mTitle->getSubpageText; case MAG_SUBPAGENAMEE: return $this->mTitle->getSubpageUrlForm; &rarr; MAG_PAGENAMEE /**    * Get the URL-encoded form of the main part * @return string * @access public */   function getPartialURL { return $this->mUrlform; } &rarr; MAG_FULLPAGENAMEE /**    * Get a URL-encoded title (not an actual URL) including interwiki * @return string the URL-encoded form * @access public */   function getPrefixedURL { $s = $this->prefix( $this->mDbkeyform ); $s = str_replace( ' ', '_', $s );
 * MagicWord.php?revision=13501
 * Parser.php?revision=13540
 * Title.php?revision=13501

$s = wfUrlencode ( $s ) ;

# Cleaning up URL to make it look nice -- is this safe? $s = str_replace( '%28', '(', $s );       $s = str_replace( '%29', ')', $s );

return $s; } &rarr; MAG_SUBPAGENAMEE /**    * Get a URL-encoded form of the subpage text * @return string URL-encoded subpage name */   function getSubpageUrlForm { $text = $this->getSubpageText; $text = wfUrlencode( str_replace( ' ', '_', $text ) ); $text = str_replace( '%28', '(', str_replace( '%29', ')', $text ) ); # Clean up the URL; per below, this might not be safe return( $text ); }

related issues

 * http://example.com/foo_(bar)
 * http://example.com/foo.bar.
 * http://example.com/foo.bar%2E
 * http://example.com/foo:bar:
 * http://example.com/foo:bar%3A
 * http://example.com/foo+bar+

comments

 * It seams that and  render differently. Best regards Gangleri · Th · T 22:06, 10 April 2006 (UTC)