mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			Utf-8 POST
							parent
							
								
									4ae525589d
								
							
						
					
					
						commit
						fb49707a72
					
				|  | @ -2674,11 +2674,7 @@ class PubServer(BaseHTTPRequestHandler): | ||||||
|                                         if line>2: |                                         if line>2: | ||||||
|                                             postValue+='\n' |                                             postValue+='\n' | ||||||
|                                         postValue+=postLines[line] |                                         postValue+=postLines[line] | ||||||
|                                 fields[postKey]=postValue.decode() |                                 fields[postKey]=postValue | ||||||
|                                 if postKey=='message': |  | ||||||
|                                     print('************************************************************************') |  | ||||||
|                                     print('message: '+fields[postKey]+' *******************************************') |  | ||||||
|                                     print('************************************************************************') |  | ||||||
|                         else: |                         else: | ||||||
|                             # directly search the binary array for the beginning |                             # directly search the binary array for the beginning | ||||||
|                             # of an image |                             # of an image | ||||||
|  |  | ||||||
|  | @ -606,7 +606,7 @@ def htmlEditProfile(translate: {},baseDir: str,path: str,domain: str,port: int) | ||||||
|          |          | ||||||
|     editProfileForm=htmlHeader(cssFilename,editProfileCSS) |     editProfileForm=htmlHeader(cssFilename,editProfileCSS) | ||||||
|     editProfileForm+= \ |     editProfileForm+= \ | ||||||
|         '<form enctype="multipart/form-data" method="POST" action="'+path+'/profiledata">' \ |         '<form enctype="multipart/form-data" method="POST" accept-charset="UTF-8" action="'+path+'/profiledata">' \ | ||||||
|         '  <div class="vertical-center">' \ |         '  <div class="vertical-center">' \ | ||||||
|         '    <p class="new-post-text">'+translate['Profile for']+' '+nickname+'@'+domainFull+'</p>' \ |         '    <p class="new-post-text">'+translate['Profile for']+' '+nickname+'@'+domainFull+'</p>' \ | ||||||
|         '    <div class="container">' \ |         '    <div class="container">' \ | ||||||
|  | @ -1001,7 +1001,7 @@ def htmlNewPost(translate: {},baseDir: str, \ | ||||||
|         mentionsStr='Re: '+reportUrl+'\n\n'+mentionsStr |         mentionsStr='Re: '+reportUrl+'\n\n'+mentionsStr | ||||||
|      |      | ||||||
|     newPostForm+= \ |     newPostForm+= \ | ||||||
|         '<form enctype="multipart/form-data" method="POST" action="'+path+'?'+endpoint+'?page='+str(pageNumber)+'">' \ |         '<form enctype="multipart/form-data" method="POST" accept-charset="UTF-8" action="'+path+'?'+endpoint+'?page='+str(pageNumber)+'">' \ | ||||||
|         '  <div class="vertical-center">' \ |         '  <div class="vertical-center">' \ | ||||||
|         '    <label for="nickname"><b>'+newPostText+'</b></label>' \ |         '    <label for="nickname"><b>'+newPostText+'</b></label>' \ | ||||||
|         '    <div class="container">' \ |         '    <div class="container">' \ | ||||||
|  | @ -3321,7 +3321,7 @@ def htmlSearch(translate: {}, \ | ||||||
|     followStr+='  <center>'     |     followStr+='  <center>'     | ||||||
|     followStr+='  <p class="followText">'+translate['Enter an address, shared item, #hashtag, *skill or :emoji: to search for']+'</p>' |     followStr+='  <p class="followText">'+translate['Enter an address, shared item, #hashtag, *skill or :emoji: to search for']+'</p>' | ||||||
|     followStr+= \ |     followStr+= \ | ||||||
|         '  <form method="POST" action="'+actor+'/searchhandle">' \ |         '  <form method="POST" accept-charset="UTF-8" action="'+actor+'/searchhandle">' \ | ||||||
|         '    <input type="hidden" name="actor" value="'+actor+'">' \ |         '    <input type="hidden" name="actor" value="'+actor+'">' \ | ||||||
|         '    <input type="text" name="searchtext" autofocus><br>' \ |         '    <input type="text" name="searchtext" autofocus><br>' \ | ||||||
|         '    <button type="submit" class="button" name="submitSearch">'+translate['Submit']+'</button>' \ |         '    <button type="submit" class="button" name="submitSearch">'+translate['Submit']+'</button>' \ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue