Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: oldbushie on January 10, 2013, 10:49:46 PM

Title: [Solved] Four Or More [url] tags becomes a 403 Error When Posting
Post by: oldbushie on January 10, 2013, 10:49:46 PM
I'm not sure where in the code this is occurring, but if I try putting more than three url tags in a post on our forums I get a 403 error:
http://www.postudios.com/blog/forum/index.php

Strangely enough, I can put as many non-bracketed urls as I want in a post and it doesn't go nuts.

It seems to work fine here though...
Google (http://www.google.com)
Google (http://www.google.com)
Google (http://www.google.com)
Google (http://www.google.com)

What should I check in our theme? I'm not overriding very much and I only have a few basic mods installed.
Title: Re: Four Or More [url] tags becomes a 403 Error When Posting
Post by: mashby on January 10, 2013, 10:54:10 PM
QuoteI only have a few basic mods installed
Which ones?
What topic is giving you grief? The link you provided is to your board index. A link to the topic would be more beneficial.
Title: Re: Four Or More [url] tags becomes a 403 Error When Posting
Post by: Arantor on January 10, 2013, 10:54:35 PM
I don't think it's anything to do with the way you have it configured. I'm pretty certain that it is your host's configuration, and specifically a thing called mod_security, which has a habit of fouling up pretty much anything by testing for arbitrary rules of content and preventing it from being used.
Title: Re: Four Or More [url] tags becomes a 403 Error When Posting
Post by: mashby on January 10, 2013, 10:58:47 PM
Sidenote: That's the best modification of the Anecdota theme I've seen ever. Without it being in the footer, I never would have known.
Title: Re: Four Or More [url] tags becomes a 403 Error When Posting
Post by: Night09 on January 10, 2013, 11:00:38 PM
Have you tried just enabling Automatically link posted URLs in the BB code settings? You dont need URL tags then.

Theres little point using the tags if the result is the same unless theres a specific reason you want them included.
Title: Re: Four Or More [url] tags becomes a 403 Error When Posting
Post by: oldbushie on January 10, 2013, 11:26:23 PM
They do automatically get printed out, if I post straight urls, yeah. The problem is that sometimes we like to, well, hide the url itself and just show the name of the site, as I pointed out above. And it's happening on any thread, or on a new thread, so it's not context-specific. The 403 only happens when I hit submit and subsequently the post doesn't get posted.

I'll definitely bug our network admin guy about mod_security, that might also be why stuff like --- is rejected from posts.

And I'm glad you like the modification, mashby! :D Our original forum guys modded Anecdota for SMF 1 but I had to wrassle with the SMF 2 version of the theme for the past 5 days to get it working the way it was before. Well worth the update.
Title: Re: Four Or More [url] tags becomes a 403 Error When Posting
Post by: Night09 on January 10, 2013, 11:30:07 PM
I had URL issues on a forum until I turned of the WYSIWYG editor, theres a topic on the site here somewhere over it. Basically if it was on or off affected the URLs  when trying to do as you say and mask them in some text.
Title: Re: Four Or More [url] tags becomes a 403 Error When Posting
Post by: oldbushie on January 10, 2013, 11:52:25 PM
Turning off WYSIWYG doesn't help; it must be something on the server settings end.
Title: Re: Four Or More [url] tags becomes a 403 Error When Posting
Post by: Arantor on January 11, 2013, 12:20:02 AM
Quote from: Arantor on January 10, 2013, 10:54:35 PM
I don't think it's anything to do with the way you have it configured. I'm pretty certain that it is your host's configuration, and specifically a thing called mod_security, which has a habit of fouling up pretty much anything by testing for arbitrary rules of content and preventing it from being used.
Title: Re: Four Or More [url] tags becomes a 403 Error When Posting
Post by: oldbushie on January 22, 2013, 02:42:33 PM
Our network admin finally managed to find the right people at the webhosting company to fix the ModSec issues. We can now post multiple urls and discuss poker again!