Unable to post when the content contains code (Perl and Bash
Discussion
I just spent several minutes composing a post which contained Perl and Bash script.
I couldn't include it in the code tags so first I tried to quote it, and then just tried posting it as unformatted text.
But PH just issues me with a "Forbidden" error - presumably because something in the code is triggering some kind of protection.
I tried removing various parts to no avail - and in any case it would have rendered the scripts useless to anyone.
This is pretty poor!
The post relates to this thread
I was trying to post this text
I couldn't include it in the code tags so first I tried to quote it, and then just tried posting it as unformatted text.
But PH just issues me with a "Forbidden" error - presumably because something in the code is triggering some kind of protection.
I tried removing various parts to no avail - and in any case it would have rendered the scripts useless to anyone.
This is pretty poor!
The post relates to this thread
I was trying to post this text
And the error you received is likely to be related to this thread.
The only fix seems to be to edit the content (and preview) until you have removed the text causing the error.
The only fix seems to be to edit the content (and preview) until you have removed the text causing the error.
bigandclever said:
It’s the word “mail” in line 12 ...
echo "${kwday} kWh" | M A I L -s "Power usage for $date" <email address goes here>
Cheers, but there must be more causing a problem.echo "${kwday} kWh" | M A I L -s "Power usage for $date" <email address goes here>
I just tried posting a tiny snippet of the script and got the dreaded forbidden message.
It doesn't matter, as I have created an entry for the scripts on my knowledge base website, so I'll just post a link to that.
bigandclever said:
Fair enough. I can preview (so I assume post) everything in your link by removing “mail”. Of course, all the “#” get converted to ordered numbers, so it gets broken anyway.
That's interesting - but as you say, converting the # to numbers is pointless anyway.I was testing with the Preview option - I tired numerous different options last night as well.
Thank you for trying though!

TonyRPH said:
bigandclever said:
It’s the word “mail” in line 12 ...
echo "${kwday} kWh" | M A I L -s "Power usage for $date" <email address goes here>
Cheers, but there must be more causing a problem.echo "${kwday} kWh" | M A I L -s "Power usage for $date" <email address goes here>
I just tried posting a tiny snippet of the script and got the dreaded forbidden message.
It doesn't matter, as I have created an entry for the scripts on my knowledge base website, so I'll just post a link to that.
It has been mentioned on the post jeremyc pointed out that on a balance of annoyance vs safety a more restrictive algorithm had to be chosen to keep our beloved old forums secure.
Good news is that this is not set in stone, we will eventually be in position to balance the algorithm back into a more convenient one without compromising in safety.
Gassing Station | Website Feedback | Top of Page | What's New | My Stuff


