Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: ; gets url encoded with some clients, + doesn't Reply #15 - Sep 19th, 2014 at 4:23am Mark & QuoteQuote I agree. The problem with issues like this is that they're not experimentally reproducible. And if they can't be reproduced, you don't know if it's fixed. Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Monni Language Offline Min izāmō Posts: 413 Location: Kaarina, Finland Joined: Jul 16th, 2014 Gender: Mood: Frustrated Zodiac sign: Re: ; gets url encoded with some clients, + doesn't Reply #16 - Sep 19th, 2014 at 9:57am Mark & QuoteQuote It all comes to fact that how many forums have really old posts that are linked from external websites... As the directory structure was changed around 2.5, all older links have to be rewritten in Apache at least once. If I figured it out correctly, Apache really does choke on semicolon during rewrite unless the query string validity check is explicitly disabled using NE (NoEscape). What comes to issue with "+" sign it is more about strict standards compliance, where actual script have to check validity of query parameter using both space and plus sign as full URL encoding of query string is optional, and not mandatory. Clients are actually permitted to URL decode safe characters on all links on pages and return the link to server in plain US ASCII. GTalk Skype/VoIP Facebook Twitter YouTube ICQ IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: ; gets url encoded with some clients, + doesn't Reply #17 - Sep 19th, 2014 at 1:45pm Mark & QuoteQuote Okay - is this something we (YaBB) can (or should) add to .htaccess during conversion for older forums? Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Monni Language Offline Min izāmō Posts: 413 Location: Kaarina, Finland Joined: Jul 16th, 2014 Gender: Mood: Frustrated Zodiac sign: Re: ; gets url encoded with some clients, + doesn't Reply #18 - Sep 19th, 2014 at 2:59pm Mark & QuoteQuote Dandello wrote on Sep 19th, 2014 at 1:45pm:Okay - is this something we (YaBB) can (or should) add to .htaccess during conversion for older forums? Well... For converting forums from maybe pre-2.5 YaBB, it is something that helps to reduce "false" 404 errors in Apache error log... I haven't yet figured out how to "permanently" fix all the regex in .htaccess to work correctly as Attachments still require two rewrites... This is the basic idea: Code RewriteRule ^yabb\/Attachments\/(.*) "\/yabbfiles\/Attachments\/$1" RewriteRule ^yabb\/(.*) "\/cgi-bin\/yabb2\/$1" [R=301,NE,L] I stripped out the host part of the rewrite target, which forces the redirect to be external, so it does update the crawler cache with new URL. GTalk Skype/VoIP Facebook Twitter YouTube ICQ IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: ; gets url encoded with some clients, + doesn't Reply #19 - Sep 19th, 2014 at 3:04pm Mark & QuoteQuote Figuring out .htaccess rewrites is never fun. Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: ; gets url encoded with some clients, + doesn't Reply #20 - Sep 19th, 2014 at 3:08pm Mark & QuoteQuote We also have to figure out how to keep Guardian from trashing those settings. Make sure Guardian doesn't trash those settings. Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Monni Language Offline Min izāmō Posts: 413 Location: Kaarina, Finland Joined: Jul 16th, 2014 Gender: Mood: Frustrated Zodiac sign: Re: ; gets url encoded with some clients, + doesn't Reply #21 - Sep 19th, 2014 at 3:16pm Mark & QuoteQuote Dandello wrote on Sep 19th, 2014 at 3:04pm:Figuring out .htaccess rewrites is never fun. Especially as I didn't originally write those rewrites... The old tech guy did write them, but they didn't work correctly with YaBB 2.5, so I had to update them with the new URL scheme... GTalk Skype/VoIP Facebook Twitter YouTube ICQ IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: ; gets url encoded with some clients, + doesn't Reply #22 - Sep 19th, 2014 at 3:38pm Mark & QuoteQuote What irks me is that when you're looking up directions on how to do something in .htaccess most of the instructions read like an old grimoire - if you don't know most of the answer already you can't figure out what the heck their solution is about. (But then a lot of Perl advice is the same way.) Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Monni Language Offline Min izāmō Posts: 413 Location: Kaarina, Finland Joined: Jul 16th, 2014 Gender: Mood: Frustrated Zodiac sign: Re: ; gets url encoded with some clients, + doesn't Reply #23 - Sep 19th, 2014 at 3:42pm Mark & QuoteQuote Dandello wrote on Sep 19th, 2014 at 3:38pm:What irks me is that when you're looking up directions on how to do something in .htaccess most of the instructions read like an old grimoire - if you don't know most of the answer already you can't figure out what the heck their solution is about. (But then a lot of Perl advice is the same way.) For me, it's about downloading the file offline and printing it on paper or widening the terminal/ssh window enough that I will see the whole rule set at one glance... Helps to see where it fails... All the escaping of unsafe characters makes it very long and hard to see what the rule is actually meant to do. GTalk Skype/VoIP Facebook Twitter YouTube ICQ IP Logged