PDA

View Full Version : urlcode in servernames


Jens L.
02-11-2002, 12:57
hi there

since my update to 2.0.18.25 i have i webpost sites urldecoded strings in the servernames and so on !

like: %2E%3Apj%3A%2E+Voiceserver

can anyone help me ?

http://www.teamspeak-server.de/modules/tsstats/?sort=server_ip&direction=asc

SirEd
02-11-2002, 14:24
hmm just noticed this to :(

N. Werensteijn
03-11-2002, 15:43
Maybe just update your scripts tp encode those codes back to chars? I think the guy that makes that script will fix that as soon as he can.

maletin
03-11-2002, 16:56
in der datei webpost.php
finde ich in die zeilen

// update existing server
if (mysql_num_rows($sql)!= 0) {
$server_ispname = htmlspecialchars($server_ispname);
$server_name = htmlspecialchars($server_name);
$server_linkurl = htmlspecialchars($server_linkurl);
query("UPDATE $dbtable SET


Die Zeile mit server_linkurl habe ich dazugefuegt.

SirEd
03-11-2002, 21:27
Originally posted by N. Werensteijn
Maybe just update your scripts tp encode those codes back to chars? I think the guy that makes that script will fix that as soon as he can.

right now they are varchars ? isnt that a standard ? well varchar2 doesnt excist on my version :)

maletin
03-11-2002, 22:40
html converts character to %20 = space and so on.
didn't find the right solution.
someone know the right php-function to convert?

Timotheus[PBC]
03-11-2002, 22:57
x= urlencode("Hallo Welt"); ...... x=> "Hallo%20Welt"
x= urldecode("Hallo%20Welt"); ...... x=> "Hallo Welt"

oder das gleiche mit rawurlencode()/rawurldecode() nach RFC1738 (alle Sonderzeichen ausser "_" und "-" werden codiert)

or do the same by rawurlencode()/rawurldecode() according to RFC1738 (all special characters except "_" and "-" will be encoded)