1 (edited by orlandu63 2007-08-31 20:45)

Topic: Unable to use apostrophes in board title and description when in-

stalling.

Solution:

mysql_escape_string($board_title);
mysql_escape_string($board_descrip);

In fact you should escape $username, $password1 and $password2, too.

Also, there are plenty of areas where you can use foreach instead of for for array looping; why don't you?

revision 1000 of install.php

Re: Unable to use apostrophes in board title and description when in-

Apostrophes work fine in the (or at least my) board title?

I assume you mean $password1 and $password2 in register.php? There's no need to escape either of them, they are simply turned into the sha1/md5 hash then that hash is inserted into the database. $username is escaped when it is inserted using $db->escape (calls either mysql_escape_string or mysql_real_escape_string if available).

I assume using for opposed to foreach would be a personal preference, I don't suppose it makes much difference performance wise?

Re: Unable to use apostrophes in board title and description when in-

Closed, we do not accept bug reports for 1.3.