emanuele45 / prettyurls

Automatically exported from code.google.com/p/prettyurls
Other
0 stars 0 forks source link

The mod doesn't work with apostrophes or quotation mark in the board name #102

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a board with an apostrophe in the name like "Grey's Anatomy"

What is the expected output? What do you see instead?
When you click on a board with an apostrophe in the name, the browser
display the "Redirect Loop" error.

What version of the mod, and what version of SMF are you using?
SMF 1.1.10 + Pretty URLs 1.0RC (The error appears with both apache and
nginx so the webserver rewrite is not a problem)

What other mods do you have installed?
None.

Please provide any additional information below.

I set up a test board where you can see the issue here:
http://usu.beedoo.org/forum/index.php just click on the board "si come no"
or L'angolo indefinito xD
The problem is only present with boards name, in the topic name those
characters are correcly escaped so I don't think it will be hard to fix.

Thank you in advance.

Original issue reported on code.google.com by andrea...@gmail.com on 28 Aug 2009 at 3:18

GoogleCodeExporter commented 8 years ago
Hmm weird. In any case you can just change the board URLs in the admin panel 
(manage
boards page).

Original comment by curiousdannii on 29 Aug 2009 at 12:54

GoogleCodeExporter commented 8 years ago
I have fixed this issue on my forum installation (SMF 1.1.9, Pretty URLs 0.9,
lighttpd) by changing in 
Sources/Subs-PrettyUrls.php 
<code>"\x12"  =>      array ("'", '"'),</code>
to
<code>""  =>      array ("'", '"'),</code>

and then flushing the mod in mysql with 
<code>truncate table smf_pretty_topic_urls;</code>
and "Run maintenance tasks" in prettyurls panel.

You can see it working here:
http://www.akwarium.net.pl/forum/ryby-akwariowe/zbrojnik-dlugopletwy/

Original comment by przemek....@gmail.com on 9 Sep 2009 at 6:14

GoogleCodeExporter commented 8 years ago
Przemek,

I tried what you suggested... replaced "\x12"  =>      array ("'", '"'),< with 
""  =>
     array ("'", '"'),<  ... I then went into my cpanel, went into PHPmyAdmin and
"emptied" the smf_pretty_topic_urls; (which is the truncate option from what it 
tells
me).

I then go into the Maintenance section for Pretty URLs and do that... but still 
have
the same issues.

Any other suggestions, or am I out of luck?

Original comment by whip.cra...@gmail.com on 24 Sep 2009 at 3:56

GoogleCodeExporter commented 8 years ago
You can set the board URLs yourself in the manage boards page! The table will 
have a
new column at the end called Pretty URLs. If you don't see it try switching to 
English.

Original comment by curiousdannii on 24 Sep 2009 at 4:56