siggen vs mod_security

A signature and avatar generator addon

Moderator: zanix

siggen vs mod_security

Postby Pyrii » Sun Mar 11, 2007 8:32 pm

I'm having constant problems at the moment trying to configure siggen, it seems that every time I try and submit the form it's setting of mod_security which my host set up, this was happening witht he last version, but my host tweaked the rules a little to relax things, but the new version today has just gone completely off the deep end and I don't know why.

My host nicely gave me the mod_security logs for the previous siggen version problem:

===============================================
[Sat Mar 3 14:24:59 2007] [error] [client x.x.x.x] mod_security: Access
denied with code 406. Error processing request body: Multipart: final boundary
missing [hostname "the-banished.co.uk"] [uri
"/roster/addon.php?roster_addon_name=siggen"]
[Sat Mar 3 14:25:09 2007] [error] [client x.x.x.x] mod_security: Access
denied with code 406. Error processing request body: Multipart: final boundary
missing [hostname "the-banished.co.uk"] [uri
"/roster/addon.php?roster_addon_name=siggen"]
===============================================

(I took out my IP)

I don't know if the post needs looking at or something. But it's gotten considerably worse this version, I may end up having to go backwards because like now, it's near impossible to call up the siggen page.
Pyrii
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Sun Jul 23, 2006 3:50 am

siggen vs mod_security

Postby Pyrii » Sun Mar 11, 2007 9:01 pm

Seems like I solved this by commenting out the version check code. (Kind of didn't realise till it was too late it was encased in an IF from a var in conf.php, oh well, it can stay commented out XD)
Last edited by Pyrii on Sun Mar 11, 2007 9:05 pm, edited 1 time in total.
Pyrii
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Sun Jul 23, 2006 3:50 am

siggen vs mod_security

Postby zanix » Sun Mar 11, 2007 10:53 pm

Pyrii wrote:Seems like I solved this by commenting out the version check code. (Kind of didn't realise till it was too late it was encased in an IF from a var in conf.php, oh well, it can stay commented out XD)
What part of the code exactly?
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

siggen vs mod_security

Postby Pyrii » Mon Mar 12, 2007 1:06 am

/roster/addons/siggen/index.php

Code: Select all
if( $siggen_update )
{
    
$sc_file_ver_latest '';

    
// Check xent.homeip.net for versioning
    
$sh = @fsockopen('xent.homeip.net'80$errno$error5);
    if ( 
$sh )
    {
        @
fputs($sh"GET /files/siggen/version.txt HTTP/1.1\r\nHost: xent.homeip.net\r\nConnection: close\r\n\r\n");
        while ( !@
feof($sh) )
        {
            
$content = @fgets($sh512);
            if ( 
preg_match('#<version>(.+)</version>#i',$content,$version) )
            {
                
$sc_file_ver_latest $version[1];
                break;
            }
        }
    }
    @
fclose($sh);

    if( 
$sc_file_ver_latest == '' )
    {
        
$functions->setMessage($siggen_locale[$roster_conf['roster_lang']]['cannot_check_version']);
    }
    elseif( 
$sc_file_ver_latest $sc_file_ver )
    {
        
$functions->setMessage(sprintf($siggen_locale[$roster_conf['roster_lang']]['new_siggen_available'],$sc_file_ver_latest));
    }
}
 


Could be that it's possibly getting an strange result from the server. I dunno, I usually use just fopen or file to get a complete result to array/string. I guess the fsock idea is a way around fopen restrictions though.

I dunno...
Pyrii
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Sun Jul 23, 2006 3:50 am

siggen vs mod_security

Postby zanix » Mon Mar 12, 2007 1:09 am

Ahh, thanks
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US


Return to SigGen

Who is online

Users browsing this forum: No registered users and 0 guests

cron