[ php-blog-Bugs-1586145 ] Small bug with the plugin Browser Compatibility

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.serendipity.trackers
Message-ID <[email protected]>
Bugs item #1586145, was opened at 2006-10-28 06:43
Message generated for change (Comment added) made by garvinhicking
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=1586145&group_id=75065

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Frontend functions
Group: None
>Status: Closed
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Garvin Hicking (garvinhicking)
Summary: Small bug with the plugin Browser Compatibility 

Initial Comment:
My domain name of my blog is "s9y.dawnh.net",but when 
I setup a domain alias "blog.dawnh.net",and visit the 
front page of blog.dawnh.net,it appears a javascripts 
error in my IE browser,it like this:

Error: Access is denied to: 
http://s9y.dawnh.net/index.php?/plugin/pngbehavior.htc

I think it is a cross-site script,so my browser 
prevent it.

It should be a relative pathname bug,and I found some 
code in 
plugins/serendipity_event_browsercompatibility/serendi
pity_event_browsercompatibility.php.So I disabled the 
Browser Compatibility plugin,and the error gone away.

Then I edited some code in this file,and the problem 
solved,only changed one row,the diff file:

--- serendipity_event_browsercompatibility.php  2006-
10-28 14:00:32.000000000 +0800
+++ 
serendipity_event_browsercompatibility.php.bak      
2006-10-28 14:00:57.000000000 +0800
@@ -48,7 +48,7 @@
                 case 'css':
 ?>
 img {
-   behavior: url("<?php echo $serendipity
['baseURL'] . ($serendipity['rewrite'] == 'none' ? 
$serendipity['indexFile'] . '?/' : ''); ?
>plugin/pngbehavior.htc");
+   behavior: url("<?php echo ($serendipity
['rewrite'] == 'none' ? $serendipity
['indexFile'] . '?/' : ''); ?
>plugin/pngbehavior.htc");
 }
 <?php
                     return true;
@@ -75,4 +75,4 @@
 }
 
 /* vim: set sts=4 ts=4 expandtab : */
-?>



I think this should included in the next release,hope 
it helpful for the Serendipity team.Sorry for my poor 
English!



----------------------------------------------------------------------

>Comment By: Garvin Hicking (garvinhicking)
Date: 2006-10-28 08:52

Message:
Logged In: YES 
user_id=473563

Hi!

Thanks for this patch, however the problem should better be
solved so that you enable the option "Autodetect
HTTP-Host"in the s9y configuration. This will then properly
set the domain to what you use!

Regards,
Garvin

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=1586145&group_id=75065

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.