links not parsing properly
Moderator: Thorsten
links not parsing properly
http://presonus.com/faq/index.php%60action=show&cat=14
links are not parsing properly. when you change the '%60' to a '?' then the links work.
i've looked all over for a typo in the config.php and index.php files and couldn't find anything. any help would be appreciated.
links are not parsing properly. when you change the '%60' to a '?' then the links work.
i've looked all over for a typo in the config.php and index.php files and couldn't find anything. any help would be appreciated.
couldn't edit my original post
here's the proper link to follow as an example. sorry, i couldn't edit my original post so i replied.
http://presonus.com/faq/index.php?action=show&cat=14
http://presonus.com/faq/index.php?action=show&cat=14
Re: links not parsing properly
Hi,
Have you changed anything in the original PMF code that could be considered as the reason for this unrequested url encoding?
Ciao,
Matteo
using %60 instead of ? breaks the search part of your URL being this far from the URL specs.Joeydood wrote:http://presonus.com/faq/index.php%60action=show&cat=14
links are not parsing properly. when you change the '%60' to a '?' then the links work.
i've looked all over for a typo in the config.php and index.php files and couldn't find anything. any help would be appreciated.
Have you changed anything in the original PMF code that could be considered as the reason for this unrequested url encoding?
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
matteo, thanks for replying so quickly!
i have made no changes to the pmf code. although i'm not the only cook in the kitchen as one would say, however, i just talked with the only other person in the company who could have made any changes to the FAQ site and he has not touched it in weeks.
any clues to where this value is stored? if i can get to it i can correct it and it will be fixed. i assume the links are parsed from a global variable somewhere???
i'm not familiar with the layout of your FAQ templates so i really am at a loss on where to look. i did however check config.php and constants.php to see if there was something i could correct before posting here.
any help is appreciated.
i have made no changes to the pmf code. although i'm not the only cook in the kitchen as one would say, however, i just talked with the only other person in the company who could have made any changes to the FAQ site and he has not touched it in weeks.
any clues to where this value is stored? if i can get to it i can correct it and it will be fixed. i assume the links are parsed from a global variable somewhere???
i'm not familiar with the layout of your FAQ templates so i really am at a loss on where to look. i did however check config.php and constants.php to see if there was something i could correct before posting here.
any help is appreciated.
Hi,
you need to take a look at [PATH_TO_PMFINSTALL]/index.php, e.g.:
as you can see the ? has been replaced, looking at the HTML source of your site, with `, that is to say the same as this thread.
Really strange, 'cause looking at your HTTP headers, your server is quite different from that of the other thread.
Did your perform any encoding conversion on the PMF pages?
Ciao,
Matteo
you need to take a look at [PATH_TO_PMFINSTALL]/index.php, e.g.:
Code: Select all
...
} else {
$links_template_vars = array(
"faqHome" => $_SERVER['PHP_SELF'],
"msgSearch" => '<a href="'.$_SERVER['PHP_SELF'].'?'.$sids.'action=search">'.$PMF_LANG['msgAdvancedSearch'].'</a>',
"msgAddContent" => '<a href="'.$_SERVER['PHP_SELF'].'?'.$sids.'action=add">'.$PMF_LANG["msgAddContent"].'</a>',
"msgQuestion" => '<a href="'.$_SERVER['PHP_SELF'].'?'.$sids.'action=ask">'.$PMF_LANG["msgQuestion"].'</a>',
"msgOpenQuestions" => '<a href="'.$_SERVER['PHP_SELF'].'?'.$sids.'action=open">'.$PMF_LANG["msgOpenQuestions"].'</a>',
"msgHelp" => '<a href="'.$_SERVER['PHP_SELF'].'?'.$sids.'action=help">'.$PMF_LANG["msgHelp"].'</a>',
"msgContact" => '<a href="'.$_SERVER['PHP_SELF'].'?'.$sids.'action=contact">'.$PMF_LANG["msgContact"].'</a>',
"allCategories" => '<a href="'.$_SERVER['PHP_SELF'].'?'.$sids.'action=show">'.$PMF_LANG["msgShowAllCategories"].'</a>',
"backToHome" => '<a href="'.$_SERVER['PHP_SELF'].'?'.$sids.'">'.$PMF_LANG["msgHome"].'</a>',
"writeSendAdress" => $_SERVER['PHP_SELF']."?".$sids."action=search",
'showSitemap' => '<a href="'.$_SERVER['PHP_SELF'].'?'.$sids.'action=sitemap">'.$PMF_LANG['msgSitemap'].'</a>');
}
...
Really strange, 'cause looking at your HTTP headers, your server is quite different from that of the other thread.
Did your perform any encoding conversion on the PMF pages?
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
Hi,
Ciao,
Matteo
that's a good question: please look at the index.php file for any changes regarding the question mark. As written in the other thread I currently have no idea about what is causing the issue so we need to discover it with some attempts, hoping to get closer to the reason on each attempt.Joeydood wrote:if nobody (yeah right!) touched it, how does it change on its own???
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
Hi,
In any case, first, update PMF to 1.6.8 and then we'll try to understand the reason of this encode "scrambling".
Ciao,
Matteo
did you open the file with some editor different from "Notepad"? Are you talking about files on your server or on a local installation on your desktop.Joeydood wrote:what's really weird is that on my machine i get a ? replaced by a %60.
on another user's machine the ? is replaced with a '.
In any case, first, update PMF to 1.6.8 and then we'll try to understand the reason of this encode "scrambling".
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
Missing Question Marks
I am experiencing this problem as well. No one has touched the code in in a while. However, my website is hosted on Yahoo and was wondering if anyone else's site is as well. Often times they change configurations without notifications to the users. I have had no response from them at this time.
Also note that this is not only in the URL string but it is in all of the content that is governed by phpMyFAQ.
Thanks,
Chris
Also note that this is not only in the URL string but it is in all of the content that is governed by phpMyFAQ.
Thanks,
Chris
Re: Missing Question Marks
Hi Chris,
Ciao,
Matteo
could you send me a PM with the URL of your faq server? I can remotely check if your hoster has made changes on the encoding setting of your server.cweeks wrote:Also note that this is not only in the URL string but it is in all of the content that is governed by phpMyFAQ.
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
Hi,
Ciao,
Matteo
a web crawler cannot modify any file on your server while an internal crawler such as a script with grep/awk should access to the files in read mode and never with write access. I hope you're wrong 'cause you'll be in an unsafe box in that case...Joeydood wrote:is it possible...
that a spider came across any install scripts and attempted to execute them in a non-interactive manner causing partial install completion which would in turn rewrite files?
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist