To wear shorts or NOT to wear shorts?

Before it gets too cold, I want to share my opinion on a topic which, I believe, most girls/women can relate to in this modern day.
The topic is, to what extent should shorts be banned in school? Do they deserve to be looked down upon?

What stirred up these questions for me is the fact that one very, very hot day, I was stopped by a counselor at the entrance of my school, to discuss the length of my shorts.
"Your shorts are much too short", she said. "You will have to stop wearing them to school".

Although I did not argue with her, my immediate thoughts were "why ME of all people?! Half the girls are wearing shorts today! Why did she have to embarrass ME?"
And then I started wondering, why should I even be embarrassed? Indeed, it WAS a very hot day, and half the girls really WERE wearing shorts.

For the record, I wasn't wearing those types of shorts that reveal your butt. Yes, they were short shorts, but paired with the appropriate shirt and shoes. It was clear that my intention wasn't to be provocative.  I DO agree that teens, at school, shouldn't dress provocatively. But I think that the rules should be revisited.
      According to the rules, girls shouldn't wear short shorts, in the simple measure of avoiding harassment. Well, I think something is very wrong with that rule. If it's a hot day, and short shorts are more comfortable than long shorts, AS LONG AS IT'S NOT PROVOCATIVE, a girl should be allowed to wear her shorts without having to worry about being harassed. That is something that needs to be changed in GUYS, not girls! Guys have to learn to control themselves!
Girls shouldn't be discriminated against for showing some skin! Skin is human. The guys who will supposedly "harass" somebody wearing shorts NEED TO LEARN that YES, women have bodies and YES, they are allowed to do what they want with them and YES, they demand to be respected.

Don't you agree?