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