[Bug 14779] {{#ifexist}} does not recognise URL encoded filenames

2010-02-18 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=14779

Tim Starling  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 14779] {{#ifexist}} does not recognise URL encoded filenames

2010-02-18 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=14779

Tim Starling  changed:

   What|Removed |Added

 CC||tstarl...@wikimedia.org

--- Comment #6 from Tim Starling  2010-02-19 07:15:29 
UTC ---
I don't see why this is a bug. It doesn't recognise URL-encoded file names
because the parameter is the file name, not the URL. I don't see the need to
take MediaWiki apart and put it back together again when you could just fix
your broken #ifexist calls.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 14779] {{#ifexist}} does not recognise URL encoded filenames

2010-02-13 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=14779

Platonides  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||platoni...@gmail.com
 Resolution||FIXED

--- Comment #5 from Platonides  2010-02-13 15:10:16 UTC 
---
You got it right. Fixed r62436

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are watching all bug changes.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 14779] {{#ifexist}} does not recognise URL encoded filenames

2009-07-01 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=14779





--- Comment #4 from Umherirrender   2009-07-01 
17:29:54 UTC ---
fullurl has no problem with urlencoded pages:

{{fullurl:{{FULLPAGENAME and {{fullurl:{{FULLPAGENAMEE gives the same
result.

CoreParserFunctions.php has the description - since r15276
$title = Title::newFromText( $s );
# Due to order of execution of a lot of bits, the values might be encoded
# before arriving here; if that's true, then the title can't be created
# and the variable will fail. If we can't get a decent title from the first
# attempt, url-decode and try for a second.
if( is_null( $title ) )
  $title = Title::newFromUrl( urldecode( $s ) );

#ifexist has not this and only try to get the title from text and not from URL
second.

I do not know this is a possible solution. I am not so familiar with MediaWiki
or PHP to say, this is good or not. I can only give you a place, who this
works. Maybe you can adapt from there.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 14779] {{#ifexist}} does not recognise URL encoded filenames

2009-01-03 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=14779





--- Comment #3 from Brion Vibber   2009-01-04 03:32:21 UTC 
---
Sanitizer::decodeCharReferences *must not* attempt to deal with URL
percent-encoding, as that would cause corruption of totally unrelated HTML
output.

Probably the Sanitizer::decodeCharReferences() and the %-check & urldecode()
both belong in either Title:newFromText or directly into
Title::secureAndSplit() to ensure that titles are being consistently handled at
the low-level; this means the various checks at higher levels should be checked
and mostly pulled out.

There are probably a number of related bugs still open on this issue; be good
to make sure they're all tied together.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 14779] {{#ifexist}} does not recognise URL encoded filenames

2009-01-03 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=14779





--- Comment #2 from René Kijewski   2009-01-03 
15:24:33 UTC ---
Wouldn't rawurldecode do it well? But I think it should go directly to
Title::newFromText.

: "Note: rawurldecode()
does not decode plus symbols ('+') into spaces. urldecode() does"


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 14779] {{#ifexist}} does not recognise URL encoded filenames

2009-01-02 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=14779


René Kijewski  changed:

   What|Removed |Added

 CC||rene.kijew...@fu-berlin.de




--- Comment #1 from René Kijewski   2009-01-03 
02:49:04 UTC ---
Maybe the underlaying Sanitizer::decodeCharReferences could be changed?
{{titleparts}} is even worse affected by the bug: It only returns the input.
I tried to provide a patch, but I got confused with the mathematics of
converting URL encode to UTF-8. ;-)

I don't know if someone needs might it, but this it the regex for proper URL
encoded characters:
/(%[0-7][0-9A-Za-z])
|(%[CDcd][0-9A-Za-z]%[89ABab][0-9A-Za-z])
|(%[Ee][0-9A-Za-z](?:%[89ABab][0-9A-Za-z]){2})
|(%[Ff][0-7](?:%[89ABab][0-9A-Za-z]){3})/x


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 14779] {{#ifexist}} does not recognise URL encoded filenames

2008-12-30 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=14779


Brion Vibber  changed:

   What|Removed |Added

   Keywords||bugday




-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 14779] {{#ifexist}} does not recognise URL encoded filenames

2008-12-18 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=14779


Brion Vibber  changed:

   What|Removed |Added

 Blocks||16474




-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l