English   German
  #1  
Old 22-12-2002, 18:43
felfert felfert is offline
-= TeamSpeak User =-
 
Join Date: Nov 2002
Location: Ludwigsburg/Germany
Posts: 2
felfert is on a distinguished road
Bug in latest WebPost2

Just found a bug:

When a channel or a channel topic contains single-quotes, the SQL query for updating the server details fails.

I solved it this way:

In db_inc.php:
Code:
function escapequote($var1) {
    return(ereg_replace("'", "\\'", $var1));
  }
In db_inc.php, function insertchannelinfo:
Code:
...
$channeldata5 = escapequote(addslashes(htmlspecialchars(trim($channeldata[5]))));  // name
$channeldata8 = escapequote(trim($channeldata[8]));  // topic
-Fritze

PS:
Would be nice to have a mail-address from the developer for sending patches. This WebForum software sucks when one wants to send patches...
Reply With Quote
  #2  
Old 23-12-2002, 03:13
Gryphon's Avatar
Gryphon Gryphon is offline
-= TeamSpeak Support =-
 
Join Date: Jun 2002
Location: Everett, WA, USA
Posts: 303
Gryphon is a glorious beacon of lightGryphon is a glorious beacon of lightGryphon is a glorious beacon of lightGryphon is a glorious beacon of lightGryphon is a glorious beacon of lightGryphon is a glorious beacon of light
addslashes should be doing this already, I will expierement with this more, thanks.

I will have a new version out soon that will have a bug reporting section along with an admin panel.
Reply With Quote
  #3  
Old 23-12-2002, 10:58
Bigman Bigman is offline
-= TeamSpeak Lover =-
 
Join Date: Aug 2002
Location: Haydock
Posts: 73
Bigman is on a distinguished road
Is there anyway of running the script and the server on the same machine behind a router. I have managed to do it so it shows the external ip instead of the local one, although the channel listings will not show as it says the tcp query port is closed as its on one machine. If that makes sense lol.
Reply With Quote
  #4  
Old 23-12-2002, 19:10
Gryphon's Avatar
Gryphon Gryphon is offline
-= TeamSpeak Support =-
 
Join Date: Jun 2002
Location: Everett, WA, USA
Posts: 303
Gryphon is a glorious beacon of lightGryphon is a glorious beacon of lightGryphon is a glorious beacon of lightGryphon is a glorious beacon of lightGryphon is a glorious beacon of lightGryphon is a glorious beacon of light
The only way to do it without some code hacking is to use your external IP for your PostURL. If you are not getting channels displayed, this is a port issue. If you have trouble opening port 51234, try changing it to another port.
Reply With Quote
  #5  
Old 23-12-2002, 19:39
Gryphon's Avatar
Gryphon Gryphon is offline
-= TeamSpeak Support =-
 
Join Date: Jun 2002
Location: Everett, WA, USA
Posts: 303
Gryphon is a glorious beacon of lightGryphon is a glorious beacon of lightGryphon is a glorious beacon of lightGryphon is a glorious beacon of lightGryphon is a glorious beacon of lightGryphon is a glorious beacon of light
Quote:
Originally posted by Gryphon
addslashes should be doing this already, I will expierement with this more, thanks.
Thanks Fritze, all it needs is addslashes for chandata8. Should be the only line that needs fixed. Fixed in next version.


$channeldata8 = addslashes(trim($channeldata[8])); // topic
Reply With Quote
  #6  
Old 15-02-2003, 11:57
Supermike Supermike is offline
-= TeamSpeak User =-
 
Join Date: Feb 2003
Location: Detroit
Posts: 11
Supermike is on a distinguished road
Send a message via ICQ to Supermike
I know this is an old thread, sorry for the bump.

the port to be opened, is it udp, or tcp

im hoping it solves my probs, i cant get the server info to post. server and script on the same machine behind a software router (sygate)
Reply With Quote
  #7  
Old 15-02-2003, 12:24
felfert felfert is offline
-= TeamSpeak User =-
 
Join Date: Nov 2002
Location: Ludwigsburg/Germany
Posts: 2
felfert is on a distinguished road
Guess why it's called WebPost

It is a plain HTTP POST request, therefore it is TCP. The port number is usually 80 but can be specified in the URL so it is depending on your configuration.

For MySQL it is usually TCP/3306 but this also can be configured and for making the connection back to the teamspeak-server, the default port is TCP/51234.

-Fritz

Last edited by felfert; 15-02-2003 at 12:29.
Reply With Quote
  #8  
Old 15-02-2003, 19:23
Supermike Supermike is offline
-= TeamSpeak User =-
 
Join Date: Feb 2003
Location: Detroit
Posts: 11
Supermike is on a distinguished road
Send a message via ICQ to Supermike
Thanks, i thought it was TCP, but i wanted to make sure, cause i already had it open. Still not sure why the port would matter if the script and the server were on the same box
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:06.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Add to Bookmarks   |   Printview   |   Contact Us   |   Legal Notices