More URL shortening
This commit is contained in:
parent
16a116ba56
commit
cf00d58da4
@ -26,7 +26,7 @@ layout: default
|
|||||||
From: <input type="text" name="from" size="15" /><br/>
|
From: <input type="text" name="from" size="15" /><br/>
|
||||||
Text Colour:
|
Text Colour:
|
||||||
<select name="colour">
|
<select name="colour">
|
||||||
<option value="black">Black</option>
|
<option value="">Black</option>
|
||||||
<option value="brown">Brown</option>
|
<option value="brown">Brown</option>
|
||||||
<option value="red">Red</option>
|
<option value="red">Red</option>
|
||||||
<option value="orange">Orange</option>
|
<option value="orange">Orange</option>
|
||||||
|
@ -60,7 +60,7 @@ title = helpers.escapeHTML(title);
|
|||||||
from = helpers.escapeHTML(from);
|
from = helpers.escapeHTML(from);
|
||||||
msg = helpers.escapeHTML(msg, true);
|
msg = helpers.escapeHTML(msg, true);
|
||||||
img = helpers.escapeHTML(img);
|
img = helpers.escapeHTML(img);
|
||||||
colour = colour.replace(/[^#A-Za-z0-9\-_]/g, '');
|
colour = (colour || '').replace(/[^#A-Za-z0-9\-_]/g, '');
|
||||||
|
|
||||||
// Get the image URL
|
// Get the image URL
|
||||||
if (img) {
|
if (img) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user