[Bug 5183] titles in short urls: question mark not supported
- From: bugzilla-daemon (at) xaraya.com
- Date: Tue, 7 Feb 2006 00:42:06 +0000 (GMT)
Please do not reply directly to this message. All additional comments should
be made in the comments box of this bug report.
http://bugs.xaraya.com/show_bug.cgi?id=5183
------- Additional Comments From curtis (at) farnham.com 2006-02-07 00:42 GMT -------
Okay, first I upgraded my local testing site to Xar 1.0.2 to have the most
current code. (I lack ssh access to my website, and I really hate debugging
over FTP.) I dug a little deeper and noticed some things. For reference, the
URL I am trying to load is:
http://xaraya.lan/articles/This_is_a_%3F_test.
I get the "Invalid Article ID" error when I have the following values set in
config.system.php:
$systemConfiguration['Exception.EnablePHPErrorHandler'] = false;
$systemConfiguration['Exception.ErrorLevel'] = E_ALL & ~E_NOTICE;
Changing them to their defaults ('false' and 'E_ALL' respectively, no quotes) I
get the following System Error notice:
/path/to/my/xaraya/modules/articles/xaruserapi/decode_shorturl.php (Line:
330) Undefined offset: 0
Here is the line in context:
327 case 'Ignore':
328 default:
329 // Just use the first one that came back
330 $theArticle = $articles[0];
If I 'print_r($params)' at the top of decode_shorturl(), I see that this
function is being called three times in the process of loading the page. The
first time the value is:
Array
(
[0] => articles
[1] => This_is_a_
)
And the other two times:
Array
(
[0] => articles
[1] => This_is_a_%3F_test.
)
That led me to investigate the $_SERVER array. Here are some interesting
values:
[REDIRECT_QUERY_STRING] => _test.
[REDIRECT_URL] => /articles/This_is_a_?_test.
[REQUEST_METHOD] => GET
[QUERY_STRING] => _test.
[REQUEST_URI] => /articles/This_is_a_%3F_test.
[PATH_INFO] => /articles/This_is_a_
[PATH_TRANSLATED] => /path/to/my/xaraya/_/articles/This_is_a_
[PHP_SELF] => /index.php/articles/This_is_a_
[argv] => Array
(
[0] => _test.
)
[argc] => 1
So even though the question-mark is represented as '%3F', Apache is still
interpreting it as the start of a list of GET parameters. I'm running Apache
2.0.55-r1 on my Gentoo laptop. My web host is running Apache 1.3.34 on *nix.
I don't have time to dig farther at the moment. Any ideas?
--
Configure bugmail: http://bugs.xaraya.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
_______________________________________________
Xaraya_bugs mailing list
Xaraya_bugs (at) xaraya.com
http://xaraya.com/mailman/listinfo/xaraya_bugs