UniUploader and Roster

Posts from previous Beta sessions

UniUploader and Roster

Postby Thorstone » Tue Feb 22, 2011 4:27 pm

Hi,

Software:
- Uniuploader :UniUploader 2.0 (UU 2.8.1.74; English)
- Roster :WoWRoster v2.0.9.2258

Upload link on roster: http://www.(domain).com/roster/upload.php

Problem: wowroster.lua file not uploaded.

Default setting of User Agent is : UniUploader 2.0 (UU 2.8.1.74; English)
(notice the capital 'U' in UniUploader )

in roster: (...)/roster/pages/upload.php it states in line 32:

Code: Select all
// See if UU is requesting this page
if( preg_match('/uniuploader/', $_SERVER['HTTP_USER_AGENT']) )
{


Since 'preg_match' is case sensitive it does not match the default User Agent in UU.

Workaround:
* To make it work I just changed the User Agent: in UU to lower case: "uniuploader 2.0 (UU 2.8.1.74; English)"

hope this helps.

Keep up the Brilliant work!

Sincerely, Thorstone
Thorstone
WR.net Apprentice
WR.net Apprentice
 
Posts: 8
Joined: Thu Aug 24, 2006 3:33 am

Re: UniUploader and Roster

Postby zanix » Wed Feb 23, 2011 2:46 am

Thanks for the catch!
You can also change the line to be a case insensative match by adding 'i' after the slash
The code is in roster/pages/update.php
Code: Select all
// See if UU is requesting this page
if( preg_match('/uniuploader/i', $_SERVER['HTTP_USER_AGENT']) )
{

I will make this change in the Roster SVN right now
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 Archived

Who is online

Users browsing this forum: Baidu [Spider] and 0 guests

cron