- Posts: 8
- Thank you received: 1
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.
Question aspx. Image in Signature adds amp;
15 years 6 months ago - 15 years 6 months ago #66719
by Phoenigs
Replied by Phoenigs on topic Re: aspx. Image in Signature adds amp;
Unfortunately I do not think it's because of kunena_htmlspecialchars
The url-BBCode delivers a perfectly parsed and unchanged Url:
The same code in the img-tag
adds the amp; thus killing the query.
And the handler of the url-tag uses the same routine:
It's like the parser looks into the database and finds an http-link. Then it looks at the tag and if it is in img, then he changes the &, if it is in url, then he decides to leave it unchanged. I tried for hours now to understand various phps of Kunena, but cannot get the pieces together. There must be someone in the Kunena Studios who knows exactly what I mean, since she/he wrote the code and could solve my case with two lines, but I do not know who to ask.
Thank you for dealing with my problem so far, but I have to keep on looking out.
Cheerio
Philipp
The url-BBCode delivers a perfectly parsed and unchanged Url:
Code:
[url=http://94.23.239.117/BloodBowlManager.WebSite/Signature2.aspx?leagueid=1782&Type=png&Team=Asgaad%20Hammer][/url]
The same code in the img-tag
Code:
[img]http://94.23.239.117/BloodBowlManager.WebSite/Signature2.aspx?leagueid=1782&Type=png&Team=Asgaad%20Hammer[/img]
adds the amp; thus killing the query.
And the handler of the url-tag uses the same routine:
Code:
case 'url' :
$tempstr = kunena_htmlspecialchars ( $between, ENT_QUOTES );
if (! preg_match ( "`^(https?://)`", $tempstr )) {
$tempstr = 'http://' . $tempstr;
}
$tag_new = "<a href='" . $tempstr . "' rel=\"nofollow\" target=\"_blank\">" . $between . '</a>';
return TAGPARSER_RET_REPLACED;
break;
It's like the parser looks into the database and finds an http-link. Then it looks at the tag and if it is in img, then he changes the &, if it is in url, then he decides to leave it unchanged. I tried for hours now to understand various phps of Kunena, but cannot get the pieces together. There must be someone in the Kunena Studios who knows exactly what I mean, since she/he wrote the code and could solve my case with two lines, but I do not know who to ask.
Thank you for dealing with my problem so far, but I have to keep on looking out.
Cheerio
Philipp
Last edit: 15 years 6 months ago by Phoenigs.
Please Log in or Create an account to join the conversation.
15 years 6 months ago #66721
by Phoenigs
Yes, the reason being: the above path does not exist any more, but I did not find a new xml, where udde hides it's version-number, otherwise I would have posted a solution.
Replied by Phoenigs on topic Re: aspx. Image in Signature adds amp;
ender wrote: $xml_uddeim->loadFile(JPATH_ADMINISTRATOR.'/components/com_uddeim/uddeim.j15.xml');
Yes, the reason being: the above path does not exist any more, but I did not find a new xml, where udde hides it's version-number, otherwise I would have posted a solution.
Please Log in or Create an account to join the conversation.
15 years 6 months ago #66724
by haithun
Replied by haithun on topic Re: aspx. Image in Signature adds amp;
Please dont cry and tell others they are not right until you checked source and thought about the problem.
These are usally characters which have to be encoded because i.e. they are needed in get request to server and same for post: ",',&,<,>
To give you the proof I just searched the whole kunena folder for "function kunena_htmlspecialchars" (which is the declaration) and found this:
function kunena_htmlspecialchars($string, $quote_style=ENT_COMPAT, $charset='UTF-8') {
return htmlspecialchars($string, $quote_style, $charset);
}
Well now I had to take a look after the "htmlspecialchars" function and cause I did not find anything in the Kunena folder I take a look at the Joomla! folder. There I found a text saying that it is a PHP function. So I took a look at "php.net" and theres the link: de2.php.net/manual/en/function.htmlspecialchars.php
Dont tell me that this function is not the reason.
The reason it looks normal in the browser is that it has a reverse function of "htmlspecialchars".
These are usally characters which have to be encoded because i.e. they are needed in get request to server and same for post: ",',&,<,>
To give you the proof I just searched the whole kunena folder for "function kunena_htmlspecialchars" (which is the declaration) and found this:
function kunena_htmlspecialchars($string, $quote_style=ENT_COMPAT, $charset='UTF-8') {
return htmlspecialchars($string, $quote_style, $charset);
}
Well now I had to take a look after the "htmlspecialchars" function and cause I did not find anything in the Kunena folder I take a look at the Joomla! folder. There I found a text saying that it is a PHP function. So I took a look at "php.net" and theres the link: de2.php.net/manual/en/function.htmlspecialchars.php
Dont tell me that this function is not the reason.
The reason it looks normal in the browser is that it has a reverse function of "htmlspecialchars".
Please Log in or Create an account to join the conversation.
15 years 6 months ago #66734
by Phoenigs
Replied by Phoenigs on topic Re: aspx. Image in Signature adds amp;
Thank you. Yet (and without tears in my eyes) I still do not know what to do about it.
I've seen the function kunena_htmlspecialchars already, too.
That function is not only there for BB-Code-IMG-Tags, I suppose, but for all the urls to be rewritten, isn't it?
What I did not know, is that reverse function. Why is it only working for the BB-Code-URL-tag?
I was wondering, why the whole rest of my Website has no problems with that Link and the &, but ONLY, if it stands between img-tags in Kunena. Surely there must be a way to sort that out, I just cannot seem to find it without a degree in Coding.
I've seen the function kunena_htmlspecialchars already, too.
That function is not only there for BB-Code-IMG-Tags, I suppose, but for all the urls to be rewritten, isn't it?
What I did not know, is that reverse function. Why is it only working for the BB-Code-URL-tag?
I was wondering, why the whole rest of my Website has no problems with that Link and the &, but ONLY, if it stands between img-tags in Kunena. Surely there must be a way to sort that out, I just cannot seem to find it without a degree in Coding.
Please Log in or Create an account to join the conversation.
15 years 6 months ago #66754
by haithun
Replied by haithun on topic Re: aspx. Image in Signature adds amp;
Well now I understood what kind of problem you really have.
The problem is not that Kunena changes the URL.
It is that your server does not understand this.
I tried it myself with your server which just accept the & and another server running apache instead of IIS and there both versions are working.
So I guess your serversettings for parsing URLs are wrong configurated.
The problem is not that Kunena changes the URL.
It is that your server does not understand this.
I tried it myself with your server which just accept the & and another server running apache instead of IIS and there both versions are working.
So I guess your serversettings for parsing URLs are wrong configurated.
Please Log in or Create an account to join the conversation.
Time to create page: 0.264 seconds