Webmastersite.net
Register Log In

Bug in tweaks.php

Comments on Bug in tweaks.php

Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Comments: 54
Posted Dec 25, 2009 - 8:21 AM:

Not really a bug. but for the tweak command "$keepchars" you cant use a ' . So you cant have tags like "men's shoes". It'll come out like "men39s shoes". Could this be corrected?

I tried adding a ' to the $keepchars command, it just gives me a syntax error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/orbiwan/public_html/includes/prestart.php(66) : eval()'d code on line 16
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Dec 25, 2009 - 8:28 PM:

There are two ways to do ' in there. You can use the other form of quotes around it, like
$keepchars = "'";
or you can escape it with a \ like
$keepchars = '\'';

I'll set the tweaks editor to automatically escape it.

URL rewriting with a ' could be a problem though.
Orbitalz
Experienced

Usergroup: Customer
Joined: Dec 19, 2004

Total Topics: 15
Total Comments: 54
Posted Dec 28, 2009 - 6:40 AM:

ah, that's true. thnx
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.